Description
Use this method to determine whether the connection to an application was previously created. Returns True the first time it is called and False thereafter.
Applicable Events
Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify
Syntax
object.GlobalObjectIsNew (intUserAssignedValue, strProgramID)
Parameters
Object is a reference to the Application object. For more information, see Application Object (page Application Object).
GlobalObjectIsNew is the command.
IntUserAssignedValue is a numerical value of your choice.
StrProgramID is the program ID. To locate program IDs, consult the application documentation.
Example
Set dbConn = CreateGlobalObject (1, “ADODB.Connection”)
If GlobalObjectIsNew(1, “ADODB.Connection”) Then
Dbconn.Open (‘Do something)
End If