Predefined Script Variables

Meta Data Services Programming

Meta Data Services Programming

Predefined Script Variables

The following table lists variables that are predefined for use in scripts. Some variables are initialized as part of the repository session.

Variable Description
ReposErr Represents an object that contains two properties:
  • ReposErr.Result, which is an HRESULT value that is returned as a result of the IDispatch::Invoke call.

  • ReposErr.Description, which is a string that describes the error. This value is guaranteed to exist only for errors generated by the repository or the script engine itself.
CurRepos Represents the current repository session as an IDispatch object.
CurReposODBC Represents the IReposODBC interface on the current repository session.
CurReposObj Represents a pointer to the IRepositoryObject2 interface. Use this interface to represent the repository object instance on which the method or validation is being executed.
NestedScripts Represents a Boolean variable that is stored as a thread-level object. This Boolean variable determines whether nested scripts are called for in the current script. If the user-set Boolean variable does not accept nested scripts, this variable is set to FALSE. After the operation is complete, the system sets it back to TRUE (the default value).

See Also

Accessing a Script

Defining Script Objects

Handling Errors

IRepositoryObject2 Interface