-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Function for working with objects identifiers
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Function for working with objects identifiers
Function | Comment |
setWorkId(index, id) |
Saves the selected identifier in the special storage with the specified index. index - integer value (index >= 0). id - object identifier. Every object of the application, when created, gets a unique identifier like GUID in Windows. To get access to the Obj1 identifier of the object in the script use the Obj1.objectID expression. Example: id1 = getWorkId(0); id2 = getWorkId(1); If (id1 == id2) MessageBox("Attempt to connect to one object two times!", MB_OK | MB_ICONWARNING); |
getWorkId(index); |
Returns the saved identifier. index - integer value (index >= 0). Example: if (obj.strTheName == "MyEnabledObject") { setWorkId(0,obj.objectID); } |
getObjData(WorkId,ObjName) |
Function gets the public-parameters of the object, having the ididentifier from the database.In the case of successful execution it returns 1, otherwise 0. To access the received parameters, use the ObjName.Param1 expression etc. |
getObjectConnectedTo(idOut, objToSerch, strExpression, ParamName); |
Searches the objects, connected with the dependence, with the ParamName variable of the objToSerch object, satisfying the strExpression condition. Condition can be null. |