| Author |  | 
      
        | patrickm Senior Member
 
  
 
 Joined: February 22 2007
 Location: United States
 Online Status: Offline
 Posts: 188
 | 
          Hello,
           | Posted: May 29 2007 at 14:44 | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Arrays are only supported in scripts. Sounds like you may be able to handle that, though, since you mentioned "pointer".
           | Posted: May 29 2007 at 20:54 | IP Logged |   |  
           | 
 |    | 
       
        | Back to Top |       | 
       
       
        |  | 
        | patrickm Senior Member
 
  
 
 Joined: February 22 2007
 Location: United States
 Online Status: Offline
 Posts: 188
 | 
          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.
           | Posted: May 30 2007 at 01:21 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          I believe that you can use ph.formula( ph_insteon(xxx) ) for that.
           | Posted: May 30 2007 at 08:11 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |       | 
       
       
        |  | 
        | eHomeCreations Groupie
 
  
 
 Joined: February 02 2007
 Location: Ukraine
 Online Status: Offline
 Posts: 64
 | 
          Arrays are tables. Can you just create a table and use that?
           | Posted: June 04 2007 at 02:38 | IP Logged |   |  
           | 
 |  
 __________________
 --Steve       http://www. ehomecreations.com
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | patrickm Senior Member
 
  
 
 Joined: February 22 2007
 Location: United States
 Online Status: Offline
 Posts: 188
 | 
          I searched for tables in the help file and didn't see any references.  A table would work if they exist.
           | Posted: June 05 2007 at 12:38 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          There is a User Table (UserData1) that you can populate.
           | Posted: June 05 2007 at 19:54 | IP Logged |   |  
           | 
 |  
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | patrickm Senior Member
 
  
 
 Joined: February 22 2007
 Location: United States
 Online Status: Offline
 Posts: 188
 | 
          I assume that is accessed by sql commands?
           | Posted: June 05 2007 at 23:48 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Sorry! Yup.
           | Posted: June 06 2007 at 07:10 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |       | 
       
       
        |  |