Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: triggers Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: April 19 2006 at 22:29 | IP Logged Quote mustangcoupe

Can I cause a trigger to run a macro but jump to a certin line? (this would cut down on my macros if I can...)

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: April 19 2006 at 23:08 | IP Logged Quote dhoward

Manny,

Trigger the macro using a formula action and use the ph_macroparm function. As one of the passed parameters, pass an integer to use in the macro as a JUMP value or for better readability, pass a label to use with the GOTO LABEL command.

So, the action might be: ph_macroparm("YOURMACROID","YOURLABEL",0,0,0,0)

And the first line of your macro will be:
GOTO LABEL [LOCAL1]

And have all of the various labels required within your macro.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward'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