forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Selecting an item in list

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Sat Jun 14, 2003 3:25 am    Post subject: Selecting an item in list Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Jun 14, 2003 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Jun 14, 2003 5:06 am    Post subject: Reply with quote

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
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Sat Jun 14, 2003 12:40 pm    Post subject: Reply with quote

Thanks guys :kiss:

Hmmm nope, no kiss smilie. Oh well Laughing Thumbs Up Big Smile

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group