Character definitions

<< Click to Display Table of Contents >>

Navigation:  Reference > Commands >

Character definitions

A character definition command takes the form:

DC cvar = $field,

DC cvar = 'text',

DC cvar[(substring)] = cvar[(substring)],

The designated contents of the second cvar in the last example are copied to the specified part of the first.

The strings must be of equal length; the maximum length for a cvar is 128.

A destination substring may only be specified on the second or subsequent definition.

Examples of character definition commands:

dc $name=$120-150,

dc $code='ABC',

dc $part1=$part2,

dc $bit=$call(4:8),

dc $some(8:12)=$other(3:7),

When using CSV data:

dc $name=$*,

dc $area=$*'region',