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 #39077 is a reply to message #38884] Wed, 13 February 2013 08:30 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

If you use not all fields in your sql schema, then SqlAll() may transfer unwanted fields (maybe BLOBs...).

rec transfers fields only present in your schema.

PS
For screen buffer to read DataFileRecord use SqlCtrls screen sctructure in header file of window class.

SqlCtrls ctrls;


and in constructor

ctrls
   (sqlfield1,dlg.ScreenField1)
   (sqlfield2,dlg.ScreenField2)
   (sqlfield3,dlg.ScreenField3)
   (sqlfield4,dlg.ScreenField4)
;


And when you read record use this code:

SQL * Select(dlg.ctrls).From(TABLE).Where(TAB_ID == ptr);
if(!dlg.ctrls.Fetch(SQL))
   return;


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
 
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: Sun Jun 08 17:04:52 CEST 2025

Total time taken to generate the page: 0.05094 seconds