Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » sql + editstring
Re: sql + editstring [message #32350 is a reply to message #32347] Tue, 10 May 2011 20:16 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi begnur,

you can use an 'SqlCtrls' object to achieve what you want.

You can do something like this:

SqlCtrls ctrls;

ctrls(MY_TABLE_Field1, editString1 )
     (MY_TABLE_Field2, editString2)
     (MY_TABLE_Field2, editString3);


void updateDbOnEditString()
{
   Sql sql;
   sql * ctrls.Update(MY_TABLE).Where(MY_TABLE_ID == index);
}

void Query()
{
   ctrls.Load( MY_TABLE, MY_TABLE_ID == index);
}



This is quite handy to use

Another way is to use an SqlArray object and set EditStrings as the controls for the each string field

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sqlite Delete not working [SOLVED]
Next Topic: More .sch files?
Goto Forum:
  


Current Time: Fri May 10 02:29:36 CEST 2024

Total time taken to generate the page: 0.02790 seconds