Using Parameter and Structure Objects 

If you want to access fields in an export/import parameter defined as a structure, use the following:

  1. Assign the parameter to an object variable:
  2. set StructObj = MyFunct.Exports( " Employee_Struct " ) OR

    Set FieldObj = MyFunct.Exports( " Company_Number " )

  3. Use either Parameter or Structure functions on the variable, depending on whether the parameter is defined as a field or structure:

StructObj.Value( " Name " ) = " Smith " OR

FieldObj.Value = " 1234 "

Structure objects are provided only to perform operations on export and import parameters. Do not attempt to use the methods and properties for this object type with table rows.

Structure and Parameter objects are fundamentally different from the other object types. They are not maintained in their own collection lists, and do not occur in any other object type as a property or method. As a result, expressions of the form

MyFunction.Structure.Value( " field-name " ) OR

MyFunction.Parameter.Value

are not valid and result in runtime errors.

To get information on a parameter’s structure definition, use the online Assistant.