Hi,
Q1: I'm trying to select 3 fields from a table as id, name and the third one is a sum() from a second table. The Sql looks like this
sele a.id, a.name, sum(b.val) from a into cursor aTmp but I get only one records. I manage to select all with a Union statement but it works slow. Anyone has a better idea ?
Q2: In a listbox are 3 items added with addlistitem("a",1) .... When I remove one of them, the listindex remains unchanged (normal). I'd like to know if it is a way to change it.
Thanks a lot !
Q1: I'm trying to select 3 fields from a table as id, name and the third one is a sum() from a second table. The Sql looks like this
sele a.id, a.name, sum(b.val) from a into cursor aTmp but I get only one records. I manage to select all with a Union statement but it works slow. Anyone has a better idea ?
Q2: In a listbox are 3 items added with addlistitem("a",1) .... When I remove one of them, the listindex remains unchanged (normal). I'd like to know if it is a way to change it.
Thanks a lot !