? HELP REQUIRED (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

HELP REQUIRED

  • #1 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies so, i am making a scratch like game, petit-basic, but im putting an input, and its not working! help! Posted
  • #2 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies heres what i have. input"X:",X$ Posted
  • #3 ✎ 477 SquareFingers Actually, it is working. Posted
  • #4 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies no, it saysillegal function call in Posted
  • #5 ✎ 477 SquareFingers Then:
    heres what i have. input"X:",X$
    That's not what you have.
    Posted
  • #6 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies yes, it is. Posted
  • #7 ✎ 289 Super_Defaultio Video Games I like to play video games! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself I'm confused? Are you trying to get touchscreen keyboard input or 3ds button input? Posted
  • #8 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies wait, idea! just a sec! Posted
  • #9 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies IT WORKED! sorry for the wast of time, i just needed to turn of the xscreen. sorry please forgive. me horrible at program if i dont notice that. Posted
  • #10 ✎ 197 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies So, I was playing around with this, trying to make INPUT return to me an illegal function call error, when I noticed this: INPUT "ABC"[0],X$ gives a type mismatch error, while INPUT "ABC"[0];X$ does not. All strings can use Subscripts like arrays, and "ABC"[0] should be compacted into its own literal at compile time, right? The manual says this on INPUT: "Only when ; is used, a string variable can be used for the guided text string" The guided text string is "ABC", however, it is not a string variable. Does this mean that when subscripts are used on a string literal, it is no longer a string literal? Posted
  • #11 ✎ 98 niconii Video Games I like to play video games! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Drawing I like to draw! Hobbies "String literal" in programming terminology specifically means writing something like "ABC", rather than any arbitrary string expression. Posted
  • #12 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies sorry, but i already found the problem. but i guess this can become a guid for those who forget to turn of xscreen, like me! i can just look here if i need help again. like thats gunna happen. Posted
  • #13 ✎ 522 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Video Games I like to play video games! Hobbies but thx for the help, those who tried. Posted
  • #14 ✎ 197 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies
    INPUT string,variable isn't allowed at all. You have to use a semicolon to separate the text from the variable list.
    Not true. Take this from the manual: "If , (comma) is used instead of ; after guiding text string, a ? mark will not be displayed" The discrepancy I'm referring to is that, according to the manual which describes how the INPUT syntax works, "ABC"[0] is treated as a string variable instead of a string literal.
    Posted
  • #15 ✎ 1619 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself It looks like you can only use plain string literals , and not expressions like "A"*2 or "ABC"[0] And somehow inputting to a CHARACTER is allowed... INPUT Q$[0] Even though this is NOT passed as a reference, which you can test using a function. This is an important lesson on why using weird syntax should be done carefully to avoid ambiguity and bugs. Posted Edited by 12Me21