Using LIKE
you can base the definition of you variable on another variable or a field in a database or temp-table.
Defining a variable LIKE
a database field requiers the database to always be connected. This might not always be what you want.
DEFINE VARIABLE i AS INTEGER NO-UNDO LABEL "Nr" FORMAT "99999".
/* Define a variable with the same properties as "i" */
DEFINE VARIABLE j LIKE i.
/* Define a variable based on Customer.Custnum from the sports2000 database but
override the label-definition */
DEFINE VARIABLE k LIKE Customer.Custnum LABEL "Client".