U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Small SqlCtrls improvement
Small SqlCtrls improvement [message #4188] Fri, 28 July 2006 11:08
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
SqlCtrls:
bool Load(Sql& sql, SqlSet set) { sql * set; return Fetch(sql); }
#ifndef NOAPPSQL
bool Load(SqlSet set) { return Load(SQL, set); }
#endif
bool Load(Sql& sql, SqlId table, SqlBool set);
#ifndef NOAPPSQL
bool Load(SqlId table, SqlBool set);
#endif

Instead of

SQL * Select(ctrls).From(TABLE).Where(where);
ctrls.Fetch();

which is very common in my code, you can now write

ctrls.Load(TABLE, where);

Mirek
Previous Topic: Value improvements...
Next Topic: Topic++ improvements...
Goto Forum:
  


Current Time: Sun Apr 26 01:01:32 GMT+2 2026

Total time taken to generate the page: 0.00423 seconds