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 


combo question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue Mar 01, 2005 7:02 pm    Post subject: combo question Reply with quote

hello all

how can i make a combo list load a txt file and display what is in that text file, then have a comboclick re-load that txt file, then when a item on that list is seleced put that into a varible?

to explain more lets say i have a txt file with this in it

john
tim
chad
joe

now have that list load and be display in the combo list, THEN when a combolist is clicked re-load that list then what ever name was click on have that go into a varible




thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Mar 02, 2005 6:57 am    Post subject: Reply with quote

Code:

  %%clicked = 0

  dialog create,Demo,-1,0,300,100
  dialog add,COMBO,Combo,5,5,180,21,,,LIST,CLICK
  dialog show

  list loadfile,Combo,file.txt

:Evloop
  wait event
  goto @event()

:ComboCLICK
  if @equal(%%clicked,1)
    %I = @item(Combo)
    Info You chose %I
  else
    list loadfile,Combo,file.txt
    %%clicked = 1
  end
  goto Evloop

:CLOSE
  exit



Is that what you're talking about Question

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Wed Mar 02, 2005 8:06 pm    Post subject: Reply with quote

yes that might work...for what i need

thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
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