PDA

View Full Version : Usage of the CHOOSE$ Keyword



Michael Clease
26-05-2007, 18:35
' Usage of the Choose$ Instruction example
'
' Returns the indexed String
'
' Written by Abraxas

Dim Mychoice as Dword value 3
DIM Mystring as String value "Option 3 "
DIM RetString as String

RetString = Choose$ (Mychoice, "Option 1", "Option 2", MyString)

msgbox 0, RetString

ErosOlmi
27-05-2007, 01:23
Got it.
Thanks

kryton9
27-05-2007, 09:53
Wow that is nice command!!

ErosOlmi
27-05-2007, 11:05
thinBasic Core engine has a lot of nice keywords especially commands dealing with strings.
Together Core and all modules have more than 1000 commands. Many times I forgot about it.

I think Abraxas idea plus the help of all here will bring more knowledge about all those keywords.

Thanks to all will have some spare time to add few lines of code here in this forum. I will keep them and put into help file.
Eros