| View previous topic :: View next topic |
| Author |
Message |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sat Jun 14, 2003 3:25 am Post subject: Selecting an item in list |
|
|
In this code, how can I select one item? Lets say I want John Smith to be selected, how can I do this?
| Code: | DIALOG CREATE,New Dialog,-1,0,240,160
REM *** Modified by Dialog Designer on 14.06.2003 - 05:11 ***
DIALOG ADD,LIST,LIST1,8,32,176,144
DIALOG SHOW
LIST ADD,LIST1, Fred Jones
LIST ADD,LIST1, John Smith |
_________________
 |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Jun 14, 2003 4:17 am Post subject: |
|
|
Not exactly sure of your question but if you're just trying to have an item selected before the user can make a change just use the list seek command:
LIST SEEK, LIST1, 1
Where it will seek to the index 1 which is John Smith |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jun 14, 2003 5:06 am Post subject: |
|
|
Or
%A = @match(LIST1,John Smith)
Which would advance the list to the item if found. Same as List Seek does,
it moves the index to that item.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sat Jun 14, 2003 12:40 pm Post subject: |
|
|
Thanks guys :kiss:
Hmmm nope, no kiss smilie. Oh well  _________________
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|