ArcPad Scripting Object Model
Run Method
See Also  Send comments on this topic.
Application
Required. A String that represents the name of the application to run.
Parameters
Optional. A String that represents any command-line arguments to be passed to the application.
WaitTime
Optional. A Long that represents the time to wait while the application is running.
Application Object : Run Method

Glossary Item Box

Description

Runs the specified application.

Syntax

object.Run ( Application [,Parameters] [,WaitTime] )

Parameters

Application
Required. A String that represents the name of the application to run.
Parameters
Optional. A String that represents any command-line arguments to be passed to the application.
WaitTime
Optional. A Long that represents the time to wait while the application is running.

Return Type

Long

Remarks

The Run method returns -1 if WaitTime was reached; otherwise, it returns the process' exit code as defined by that process. Some programs use the exit code to indicate success or failure.

Application is a string representing the name of the application to run. Specify a filename to run the default application associated with its filetype.

WaitTime is a long representing the amount of time, in milliseconds, to wait while the application is running.
Specify a WaitTime of 0 if you do not want to wait (default).
Specify a WaitTime of -1 if you want to wait until the application is finished running. [Optional].

See Also

© 2013 All Rights Reserved.