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
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
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks Eros!
Regarding "no longer an issue" #2 I got confused, because pressing F1 on choose$ still took me to choose topic.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Perfect, thank you!
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks