Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing device name as variable
#11
Oh, that's probably the backwards logic of the macro system relative to the action system. Typically macros return 0 for no error and some non-zero value for an error. But the action system takes 0 for false and non-zero for true. I just failed to take that into account when I wrote the macro. I should have returned 1 for success and 0 for failure. Sorry about that.

Just double click your If statement to turn into an If Not and then you probably will be ok.
Dean Roddey
Software Geek Extraordinaire
Reply
#12
Well, that's not it. I checked and I'm doing the right thing. You may have an older version of the macro or something where I initially got that wrong. Anyway, flip the logic and see if that makes it happier.

Is the version you have in /User/Num2Num or /User/CQC/Num2Num?
Dean Roddey
Software Geek Extraordinaire
Reply
#13
It is in User/Num2Num.  

I pulled it from the link in post #9.  http://www.charmedquark.com/vb_forum/sho...ht=num2num

Even if I make it an If NOT statement, the returned values are still zero.  Perhaps, the macro I have is not the right one.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Variable Driver Trigger Error zra 4 749 07-06-2017, 01:00 PM
Last Post: zra
  Device Driver documentation Bugman 3 689 06-01-2017, 05:16 PM
Last Post: Dean Roddey
  Echo is passing numbers as text so it cant be written to a field - any fix? ghurty 9 1,100 07-03-2016, 08:05 AM
Last Post: ghurty
  Inserting global variable into command string MikeA 2 529 06-26-2016, 10:09 AM
Last Post: MikeA
  Z-Wave Device config GoControl Door/Window Sensor batwater 50 3,556 03-09-2016, 01:21 PM
Last Post: Dean Roddey
  Set Variable field with Slider (Variables driver) pinballmark 2 717 08-28-2015, 01:55 PM
Last Post: pinballmark
  Problem with OmniPro II device dlmorgan999 3 599 07-26-2015, 08:07 PM
Last Post: dlmorgan999
  Variable Find action? dlmorgan999 3 708 05-21-2015, 05:00 PM
Last Post: dlmorgan999
  Device Driver docs? IVB 3 753 02-19-2015, 05:02 AM
Last Post: EST
  What command would I use to write a field value to a variable? ghurty 4 804 01-28-2015, 02:57 PM
Last Post: znelbok

Forum Jump:


Users browsing this thread: 1 Guest(s)