GetId()
- Last UpdatedJul 22, 2024
- 1 minute read
Use the GetID() method to retrieve the ID of an aaDBCommand object instance for use in a different script or scan. The SQLData Script Library generates a unique command object ID, which remains unique across all scripts on the engine.
Syntax
string GetId()
Return value
On failure, this method returns the value Null.
Remarks
The SQLData Script Library returns a string value, but the script engine automatically attempts to cast this value to other types. If the script assigns the returned ID to any type other than string, the ID is corrupted and does not work in future GetCommand(ID) calls.