Jump to content

Variables


remedy1234

Recommended Posts

Posted

Hello Everyone,

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.

 

Thanks Tim

Posted

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.

Posted
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.

Posted

^^^

 

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.

Posted
^^^

 

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.

Posted
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

  • 2 months later...
Posted
Hi Guys,

 

Fixed in 4.0.1:

- Spaces are now automatically converted to '_'

- A error popup now appears if an invalid variable name is entered

 

With kind regards,

Michel

 

Fine work. It is nice how you guys actually pay attention to your customers.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      372k
×
×
  • Create New...