Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Variables

Featured Replies

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

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.

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.

  • Author

THANK YOU! :D

Turns out you both are correct.Thanks for the help.

Tim

If you put a space in, it won't give you an error, it just won't change the name.

@Michel: Do fix. =p

^^^

 

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.

^^^

 

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.

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

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

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.