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 » Reading S_xxxx records from Sql
Re: Reading S_xxxx records from Sql [message #38875 is a reply to message #38871] Fri, 25 January 2013 00:19 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
I did not test it, but the correct syntax would be something like this:
Sql sql;
S_SOMETABLE rec;
sql*Select(rec).From(SOMETABLE).Where(key==1);
if (sql.Fetch(rec)
{
  //do something with the first record in rec
}


Or:

while (sql.Fetch(rec)
{
  //do something with all records
}


Read Sql Tutorial's 6th chapter.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to view immediately the primary key in SqlArray
Next Topic: SqlArray with Ctrls (in place)
Goto Forum:
  


Current Time: Tue May 07 11:39:38 CEST 2024

Total time taken to generate the page: 0.02243 seconds