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

INIT TO causing variable to be zeroed out

Featured Replies

I have this program that I am trying to use to set an integer variable to the current day of the month. When I run the THEN clause the INIT value is correct but the variable iCurrentDayOfMonth is set to zero. This doesn't make sense. I expect them both to be the same. I have a couple of other similar programs using different variables and they work fine. What is going on? TIA

DATTM SetCurDayOfMonth - [ID 0047][Parent 0028]

If

- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then

$iCurrentDayOfMonth = [Current Day of Month]

$iCurrentDayOfMonth Init To $iCurrentDayOfMonth

Else

- No Actions - (To add one, press 'Action')

Whereas these programs work fine. Both the variables and its INIT values are correct all the time:

DATTM SetCurHH - [ID 006D][Parent 0028]

If

- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then

Repeat 23 times

$iCurrentHH = [Current Hour]

$iCurrentHH Init To $iCurrentHH

Run Program 'DATTM SetCurMM' (Then Path)

Wait 1 hour

Else

- No Actions - (To add one, press 'Action')

DATTM SetCurMM - [ID 006E][Parent 0028]

If

- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then

Repeat 59 times

$iCurrentMM = [Current Minute]

$iCurrentMM Init To $iCurrentMM

Wait 1 minute

Else

- No Actions - (To add one, press 'Action')

EISY running version 6.0.0.

  • Author

OK, how do I paste code into a forum post and keep the indenting? For some reason it appears to be all shoved to the left and indenting is lost. If I post the same clipboard into Notepad the code appears indented.

Thanks for any tip you can provide.

Create an account or sign in to comment

Account

Navigation

Search

Search

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.