Subject | Multi select |
---|---|
Author | Andrei Luís |
Post date | 2006-10-26T14:21:19Z |
Hi,
I want to use multi-select at an IB_Grid, but I'm a little confused.
I read about SelectedBookmarks, and I'm trying to use it like this:
qrMyQuery.SelectedBookmarks(s);
S is an StringList var.
qrMyQuery has a PrimaryKey.
Problems:
- If I have only one record selected, S receive nothing, stays empty.
If I have two or more records, S receives one record less the total.
Eg. 5 records selected, and S receives only 4. What I'm doing wrong?
- The stringList, is receiving something like this: 00008C710000 But,
what is this? It seams a hexa value or something like that. But the
primary is an integer field. How can I use the content of S in a
Select statement?
Can anyone help me?
Thanks,
[]s
Andrei
Win XP Pro + D4 Pro + FB 1.5.2 + IBO 4.6B
I want to use multi-select at an IB_Grid, but I'm a little confused.
I read about SelectedBookmarks, and I'm trying to use it like this:
qrMyQuery.SelectedBookmarks(s);
S is an StringList var.
qrMyQuery has a PrimaryKey.
Problems:
- If I have only one record selected, S receive nothing, stays empty.
If I have two or more records, S receives one record less the total.
Eg. 5 records selected, and S receives only 4. What I'm doing wrong?
- The stringList, is receiving something like this: 00008C710000 But,
what is this? It seams a hexa value or something like that. But the
primary is an integer field. How can I use the content of S in a
Select statement?
Can anyone help me?
Thanks,
[]s
Andrei
Win XP Pro + D4 Pro + FB 1.5.2 + IBO 4.6B