.USER_DEFINE

Define a user data set

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
.USER_DEFINE #fields, field_size

Arguments

#fields

The number of fields to be in the user data set.

field_size

The size of each data set field.

Discussion

The .USER_DEFINE command defines the number of fields and the size of each field in a user data set.

If you have previously defined a user data set for the window (by a previous .USER_DEFINE command), that data set and any data that has been placed in the set is replaced. The specified user data set is initialized to blanks.

Use the Synergy DBL W_FLDS subroutine to process user data sets.

Examples

The following example defines a user data set that has 5 fields of 10 characters each.

.user_define 5, 10

This window has a copy of its text in another language. At runtime, the program can use either the English or the Spanish version.

.window nofile, 3, 30
.text nofile, position(2,1)
Cannot find file.
.user_define 1, 30
.data 1, "No puedo encontrar el archivo."
.end