Parameterize the called Action in a RunAction statement

1. Use a variable on the "RunAction" statement, containing the action to call:

1. Built-in method:

MyAction = "Hello [Greetings_Test]"
RunAction MyAction, oneIteration

2. Via VBScript Execute approach:

MyAction = "Hello [Greetings_Test]"
Stmt = "Call RunAction (" & chr(34) & MyAction & chr(34) & ", oneIteration)"
print Stmt
Execute Stmt

2. Use "LoadAndRunAction" statement.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s