Results 1 to 5 of 5

Thread: Help file: Choose and Choose$ issues

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Help file: Choose and Choose$ issues

    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

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    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

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    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

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    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

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    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

Similar Threads

  1. CHOOSE and CALL used to do the same thing
    By marcuslee in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 1
    Last Post: 09-09-2008, 07:01
  2. Usage of CHOOSE keyword
    By Michael Clease in forum Samples for help file
    Replies: 3
    Last Post: 09-09-2008, 03:48

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •