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 » Simple U++ Sql Tutorial
Re: Simple U++ Sql Tutorial [message #9427 is a reply to message #9425] Mon, 07 May 2007 15:45 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

datagrid.Add(String(sql[1]), IntStr(sql[2]), IntStr(sql[3]), String(sql[4]), String(sql[5]), String(sql[6]));

BTW, I suppose datagrid is an ArrayCtrl variable. There is no need to conver sql values to string type as arrayctrl can store different type values and display them properly. This line of code should rather look like:
datagrid.Add(sql[1], sql[2], sql[3], sql[4], sql[5], sql[6]);

or like in your case if you store sql values in array ctrl one by one this row can be written simply as:
datagrid.Add(sql);


[Updated on: Mon, 07 May 2007 15:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: small patch for PostgreSQL
Next Topic: Sql::Execute()
Goto Forum:
  


Current Time: Sun May 12 17:39:13 CEST 2024

Total time taken to generate the page: 0.02509 seconds