Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Any way to use an array within Powerhome? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: May 29 2007 at 14:44 | IP Logged Quote patrickm

Hello,
I would like to write a macro that would be able access a 2d array for the parameters i.e. device and duration. I am trying to avoid having to write very long macros with specific variables for each device and duration in the macro and just use a loop with a pointer to an array.
Back to Top View patrickm's Profile Search for other posts by patrickm
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: May 29 2007 at 20:54 | IP Logged Quote TonyNo

Arrays are only supported in scripts. Sounds like you may be able to handle that, though, since you mentioned "pointer".
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: May 30 2007 at 01:21 | IP Logged Quote patrickm

Are the Insteon functions supported from within scripts directly? I didn't see any listed in the help file, but I believe the help file hasn't been fully updated yet.
Back to Top View patrickm's Profile Search for other posts by patrickm
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: May 30 2007 at 08:11 | IP Logged Quote TonyNo

I believe that you can use ph.formula( ph_insteon(xxx) ) for that.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
eHomeCreations
Groupie
Groupie


Joined: February 02 2007
Location: Ukraine
Online Status: Offline
Posts: 64
Posted: June 04 2007 at 02:38 | IP Logged Quote eHomeCreations

Arrays are tables. Can you just create a table and use that?

__________________
--Steve       http://www. ehomecreations.com
Back to Top View eHomeCreations's Profile Search for other posts by eHomeCreations Visit eHomeCreations's Homepage
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: June 05 2007 at 12:38 | IP Logged Quote patrickm

I searched for tables in the help file and didn't see any references. A table would work if they exist.
Back to Top View patrickm's Profile Search for other posts by patrickm
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 05 2007 at 19:54 | IP Logged Quote TonyNo

There is a User Table (UserData1) that you can populate.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: June 05 2007 at 23:48 | IP Logged Quote patrickm

I assume that is accessed by sql commands?
Back to Top View patrickm's Profile Search for other posts by patrickm
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 06 2007 at 07:10 | IP Logged Quote TonyNo

Sorry! Yup.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum