A structure is capable of holding dissimilar, but related data as shown in the following example:
The structUutData structure holds strings, dates, and a enum value.
After you create a structure, as explained in Creating Structures, you need to define a variable of that structure type as shown here under Variable sub-nodule:
You can access a structure fields using the member operator (dot). For example, you can access the enStatus field that is a member of the structUutData structure with the following command:
stUutData.enStatus = FAIL
The following example shows how to retrieve a value from the dtStarttime field:
Print stUutData.dtStartTime
You can pass a structure (and its collection of fields) by using the Structure name as a parameter as in the following example:
DisplayStatus( stUutData )
By using only one parameter, stUutData, the structure name, you can use the DisplayStatus procedure to access the entire collection of fields within that structure.
For more information on procedures, see Procedures Overview.