PDA

View Full Version : Help file: Choose and Choose$ issues



Petr Schreiber
11-08-2011, 00:07
Hi Eros,

I found two problems related to documentation of Choose and Choose$

#1
In topic:
thinBasic Modules > Core > Numeric functions > CHOOSE
There is problem in Parameters table - the data type for choice1, choice2 should be number, not string

#2
The topic thinBasic Modules > Core > Numeric functions > CHOOSE$ is completely missing.
I found by accident that CHOOSE$ is also implemented. The documentation for it would be the same as for CHOOSE except:

choice1, choice2 are strings
"An expression evaluated as number" -> "An expression evaluated as string"
"CHOOSE expects choices of numeric type" -> "CHOOSE expects choices of string type"

Thanks,
Petr

ErosOlmi
12-08-2011, 16:00
Fixed number 1.
Number two is instead described but under String handling: http://www.thinbasic.com/public/products/thinBasic/help/html/choose$.htm
I will add a reference to each other

Petr Schreiber
12-08-2011, 17:50
Thanks Eros!

Regarding "no longer an issue" #2 I got confused, because pressing F1 on choose$ still took me to choose topic.


Petr

ErosOlmi
12-08-2011, 17:58
Ok, I got it.
I've changed help file and added the same keywords search for Choose and Choose$ so when you will press F1 you will get both.

Ciao
Eros

Petr Schreiber
12-08-2011, 18:03
Perfect, thank you!


Petr