| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 01, 2005 7:02 pm Post subject: combo question |
|
|
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  |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Mar 02, 2005 6:57 am Post subject: |
|
|
| 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  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Wed Mar 02, 2005 8:06 pm Post subject: |
|
|
yes that might work...for what i need
thanks _________________ Have a nice day  |
|
| 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
|
|