Shop OBEX P1 Docs P2 Docs Learn Events
alias — Parallax Forums

alias

galeglorygaleglory Posts: 25
edited 2009-10-19 05:54 in Learn with BlocklyProp
i can't seem to get the aliases to work on my program. any ideas?shakehead.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-10-17 00:14
    Aliases work as described in the manual. Perhaps you should attach your program to your next reply so others can help you see what need to do. Use the Post Reply button and use the Attachment Manager to upload your source program.
  • galeglorygaleglory Posts: 25
    edited 2009-10-17 01:47
    it's still a work in progress
  • galeglorygaleglory Posts: 25
    edited 2009-10-19 01:08
    any idea wuts wrong?confused.gif
  • FranklinFranklin Posts: 4,747
    edited 2009-10-19 01:30
    You are assigning the value of IN1 to a variable and cant from then on have it change until you assign it again. RTFM!

    Your program does not even compile. That might be a clue you don't have things right.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Mike GreenMike Green Posts: 23,101
    edited 2009-10-19 05:54
    As Franklin said, you need to read the manual.

    Saying "x = in3" doesn't make x a new name for in3. For that you need to use the PIN declaration. Have a look at the description and examples in the manual.

    You've got a lot of duplicate labels. The compiler (Stamp Editor) won't like that. Labels must be unique within a program.

    Read the description of the compiler directives in the manual. In particular, do you want to use PBasic 2.0 syntax or PBasic 2.5 syntax? The latter syntax is more flexible and powerful, but you have to have a directive in your program to specify that you're using it.
Sign In or Register to comment.