Jump to content

Variables


remedy1234

Recommended Posts

Do you mean you are trying to change the name of the variable?

 

Is so, you can have no spaces in the names of variables. If you put a space in, it won't give you an error, it just won't change the name. Commonly people use a period instead of a space.

 

Also, it is common to start the name of any integer variable with an "i" and any state variable with an "s" since there is otherwise no distinction when you pull the variables up in programs.

Link to comment
I have a Quick question,I am trying to change the text in the (state Variables)I have done it by accident but cannot seem to duplicate it.If I type a new description and save it goes back to the original State-1.I am using a MAC.

The interface seems to act weird to me too. I find that if I just click in the name, erase it, type what I want, hit Enter, and then click Save at the bottom, it works ok. If I try to do anything else like setting the value or anything, it always wants to reset the name. It's definitely a bit wonky. Also, what are you are using as the name...I seemed to have trouble trying a name with spaces...I'm not sure if they're explicitly disallowed, but I couldn't get it to ever keep a name with a space, so I used underscores instead without issue.

Link to comment
^^^

 

FWIW, I think the no-spaces restriction is fine...it'd just be nice if the UI let you know that somewhere instead of just silently reversing it.

 

Agreed. When you first added variables to ISY and I went to give out a few names (using spaces of course) and nothing happened, I was at first thinking, Hmmmm, what the heck. After a few more tries my language got more colorful until I surmised the no spaces allowed restriction.

Link to comment
When you first added variables to ISY and I went to give out a few names (using spaces of course) and nothing happened, I was at first thinking, Hmmmm, what the heck. After a few more tries my language got more colorful until I surmised the no spaces allowed restriction.

I had an almost identical experience. =p

Link to comment
  • 2 months later...

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...