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
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