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 » How to view immediately the primary key in SqlArray
Re: How to view immediately the primary key in SqlArray [message #38845 is a reply to message #38842] Wed, 23 January 2013 14:18 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 702
Registered: December 2005
Location: Budapest, Hungary
Contributor
I did not try, but I think, this code would be better:
_arr.SetTable(MY_TABLE).AppendingAuto();
_arr.AddColumn(ID, t_("ID") );
_arr.AddColumn(DESC, t_("Descr")).Edit(_desc);
_arr.AddColumn(COST, t_("Cost") ).Edit(_cost);
_arr.Appending().Removing();
_arr.SetOrderBy(ID);
_arr.Query();

I removed AddKey as the first column is the key, and removed the editor from the ID column.
 
Read Message
Read Message
Read Message icon14.gif
Read Message
Previous Topic: How to use Sqlite BLOB type in U++ schema files?
Next Topic: Reading S_xxxx records from Sql
Goto Forum:
  


Current Time: Sat Jun 07 19:35:16 CEST 2025

Total time taken to generate the page: 0.04825 seconds