Search found 26 matches
- Tue Feb 04, 2025 8:38 pm
- Forum: Code snippets
- Topic: A program using a procedure to roll dice for a game.
- Replies: 0
- Views: 41
A program using a procedure to roll dice for a game.
A program using a procedure to roll dice for a game. Some examples: results=rollDice["3D6"] results=rollDice["2D6+6"] results=rollDice["4D6-2"] results=rollDice["1D10*10"] results=rollDice["6D6/2"] REM ********************************************** R...
- Tue Feb 04, 2025 8:11 pm
- Forum: Support
- Topic: simplifying procedure calling
- Replies: 2
- Views: 95
Re: simplifying procedure calling
Works like a charm. Thanks.
On p. 113 of the manual I saw "If the procedure returns a value, the calling statement just ignore it." and just assumed you had to go the PARAM route.
On p. 113 of the manual I saw "If the procedure returns a value, the calling statement just ignore it." and just assumed you had to go the PARAM route.
- Tue Feb 04, 2025 7:06 pm
- Forum: Support
- Topic: Using arrays as INPUT variables
- Replies: 0
- Views: 10
Using arrays as INPUT variables
Can you use arrays as an input variable? The first code generates this error when compiling. Error: INPUT unsupported for variable of given datatype (name, ARRAY) DIM name$(10) INPUT "What name will you go by? ",name$(1) PRINT name$(1) WAIT KEY RELEASE This code compiles but just takes an ...
- Tue Feb 04, 2025 6:17 pm
- Forum: Code snippets
- Topic: Posting code snippets and examples
- Replies: 5
- Views: 75
Re: Posting code snippets and examples
Nice. I'll post as some as I'm working through my own programs.
- Tue Feb 04, 2025 4:35 pm
- Forum: Support
- Topic: simplifying procedure calling
- Replies: 2
- Views: 95
simplifying procedure calling
Is there a better way to simplify procedure calls? As in the example below is use 2 commands to get the result. Is there a way to do accomplish something like this? results=rollDice[dice$] or is the 2 lines I use the best way? sTART: CLS RANDOMIZE TIMER PROCEDURE rollDice[diceStr$] {some code to par...
- Tue Feb 04, 2025 4:12 pm
- Forum: Support
- Topic: COCO3 - text does not wrap while entering a long string with INPUT command
- Replies: 2
- Views: 19
Re: COCO3 - text does not wrap while entering a long string with INPUT command
Thanks for the clarification and entertaining the idea of creating a variant. It's no problem working around the current behavior. I can just PRINT the text and put the INPUT on the next line and hope they are not wordy players. I base my INPUT behavior on the way the Color Computer BASIC handled it...
- Tue Feb 04, 2025 3:07 pm
- Forum: Support
- Topic: COCO3 - not able to enter lower case text with INPUT
- Replies: 2
- Views: 17
Re: COCO3 - not able to enter lower case text with INPUT
Sounds good. Thanks for the update.
- Tue Feb 04, 2025 3:06 pm
- Forum: Code snippets
- Topic: Posting code snippets and examples
- Replies: 5
- Views: 75
Re: Posting code snippets and examples
Great. Would you like them posted here in the Support area or will you open another area to put them in and discuss?
- Mon Feb 03, 2025 8:25 pm
- Forum: Code snippets
- Topic: Posting code snippets and examples
- Replies: 5
- Views: 75
Posting code snippets and examples
Would you be open to creating a forum topic for users to post code snippets and examples?
- Mon Feb 03, 2025 8:22 pm
- Forum: Support
- Topic: COCO3 - not able to enter lower case text with INPUT
- Replies: 2
- Views: 17
COCO3 - not able to enter lower case text with INPUT
Appears you are not able to enter lower case text with an INPUT statement.