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 » fetch not reading into struct
Re: fetch not reading into struct [message #32670 is a reply to message #32666] Wed, 01 June 2011 10:31 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

try use upper case SQL, and use SQL instead view:
SQL = dbSession
SQL * Select(EMPLOYEE_ID, FIRST_NAME, LAST_NAME).From(PUNCH_VIEW);

while(SQL.Fetch(view))
{
    if(SQL[FIRST_NAME] == "John")
    {
        // add this text to a GridCtrl
    }

}


A better example look in HomeBuget package.

[Updated on: Wed, 01 June 2011 10:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating a TIMESTAMP column in MySQL
Next Topic: Sqlite with U++
Goto Forum:
  


Current Time: Tue May 13 21:18:36 CEST 2025

Total time taken to generate the page: 0.03433 seconds