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 » ArrayCtrl, HeaderCtrl & GridCtrl » SqlCtrl accessing
SqlCtrl accessing [message #12884] Sun, 25 November 2007 10:07 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi,

I have an sqlctrl showing to columns of a database table (ID, NAME). It is showing 5000 rows of data.

How to I get the data from the second row, second column?

I trying this withoud success:

Value k(DBGrid.Get(1,1));
String s=k.ToString();
PromptOK(s);

or

Value k(DBGrid.Get(0,1));
String s=k.ToString();
PromptOK(s);



or

Value k(DBGrid.Get(1,0));
String s=k.ToString();
PromptOK(s);

Is this the right way? It seems to show always the value of the first column. How to get data from a Value Type?

Env: WinXP, upp 2007.1

Thanks
Alex

 
Read Message
Read Message
Read Message
Previous Topic: Howto: Row Aggregation for ArrayCtrl
Next Topic: The DataPusher(?) does not show up
Goto Forum:
  


Current Time: Sat Jun 01 22:50:16 CEST 2024

Total time taken to generate the page: 0.01598 seconds