Data_Set - DataDictionary
Returns the object id of the DataDictionary object whose main file is passed to the function
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| iFile | Integer | Number of table |
Syntax
Function Data_Set Integer iFile Returns Integer
Call Example
Get Data_Set iFile to IntegerVariable
Description
The Data_Set function returns the object id of the DataDictionary object (DDO) whose main file is passed to the function.
Data_Set vs. Which_Data_Set
Which_Data_Set scans the DDO and its parent DDOs for a server that matches the table number, while Data_Set does this and also scans "down" the DDO tree (i.e. children of the DDO receiving the message).
Which_Data_Set scans up the DDO tree. Data_Set will only search the whole tree when Which_Data_Set failed to find a DDO with Main_File set to the table number passed to the function. For traversing down and up the tree, the function uses Data_Set_Client_Count, Data_Set_Client, Data_Set_Server_Count and Data_Set_Server.
Data_Set scans up and then down the DDO tree.
Return Value
Returns the object id of the DataDictionary object