TYPE Tname [EXTENDS Tbase] EXPORT TYPE Tname [EXTENDS Tbase] IN DATA SET ... DEFINE TYPE Tname [EXTENDS Tbase] IN DATA SET ... EXPORT TYPE Tname [EXTENDS Tbase]By default a type definition is local to the current segment. This is also true for types defined in the main segment. Therefore, types used in COM statements must be "exported" in order to be usable in a subprogram. Otherwise a runtime error message will be issued.
Please note: This is a behavior change. Initially, all types defined in the main segement were global.
CALL X(STRUCT X) SUB X(STRUCT Any) ! Anonymous CALL Y(STRUCT X) SUB Y(STRUCT Known:Tknown) ! Passed value must be of type Tknown ! or derived from it. Tknown must have ! been definined previouslyPlease note: This is a behavior change. Initially, arguments were checked, when a subprogram or function was called from the main segment. Otherwise no validation was performed.
For example: eloqdb6.cfg
[Server] ... Title = test server