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 


[resolved]How do I get data into a COMBO LIST dialog element

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Apr 14, 2004 10:57 am    Post subject: [resolved]How do I get data into a COMBO LIST dialog element Reply with quote

My mind is blank!

If I have COMBO element with the LIST style, populate the LIST with LIST LOADTEXT etc., How do I put the first item into the COMBO element so that it displays the first item.

I have done it before, but I have completely forgotten how

Thanks in advance!

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Apr 14, 2004 11:09 am    Post subject: Reply with quote

I'm not sure what you mean..

Code:
DIALOG ADD,COMBO,name,50,50,50,50,,,SORTED

dialog set,name,@item(1)
dialog set,name,@text(1)
list assign,name,%%text


does that help any?
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Apr 14, 2004 11:22 am    Post subject: Reply with quote

Quote:
Visual DialogScript Code:
DIALOG ADD,COMBO,name,50,50,50,50,,,SORTED

dialog set,name,@item(1)
dialog set,name,@text(1)
list assign,name,%%text



No, I meant something like this:-

Code:

DIALOG ADD,COMBO,PLSI,410,16,130,21,1000000.00,,LIST

LIST LOADTEXT,PLSI
"1,000,000.00
"2,000,000.00
"3,000,000.00
"4,000,000.00
"5,000,000.00



DIALOG SET,PLSI,"1,000,000.00" does not work, as you have to select the item in the list somehow, but I have forgotten how!

Cheers

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Apr 14, 2004 11:37 am    Post subject: Reply with quote

Try to remove the LIST parameter in your code and you'll probably see it working.....

Not quite sure why though Shocked

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Apr 14, 2004 11:43 am    Post subject: Reply with quote

No, I want the user to be only able to chose the items in the drop down list! If LIST is omitted then the user can input anything they like into the list.

I just want to populate the dialog with the first item in the list which DIALOG SET does not do.

I have done it before, I have just forgotten how!

Cheers

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Apr 14, 2004 11:57 am    Post subject: Reply with quote

Ah!

This works:-

Code:

DIALOG ADD,COMBO,PLSI,410,16,130,21,1000000.00,,LIST

LIST LOADTEXT,PLSI
"1,000,000.00
"2,000,000.00
"3,000,000.00
"4,000,000.00
"5,000,000.00

LIST SEEK,PLSI,0



Thanks all for your comments!

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Apr 14, 2004 11:58 am    Post subject: Reply with quote

Then do this

Code:
DIALOG ADD,COMBO,PLSI,10,16,130,21,,,LIST
LIST LOADTEXT,PLSI
"1,000,000.00
"2,000,000.00
"3,000,000.00
"4,000,000.00
"5,000,000.00
list seek,PLSI,0


Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Apr 14, 2004 12:00 pm    Post subject: Reply with quote

Aaaaah, too slow! You found it yourself Very Happy

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Apr 14, 2004 12:10 pm    Post subject: Reply with quote

Only by a minute!

Thanks!

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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