Previous Topic Next topic Print topic


&DEFVAL

Holds the string or number value of the last &DEFINED variable in &variablename.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

&DEFVAL

Aliases:

&defval      &Defval

Comments:

&DEFVAL is an abbreviation that executes faster than the equivalent, more explicit code.

Example:

You can replace the following code:

% REPEAT VARYING &SC-I FROM 1
% WHILE &DEFINED( &<&SCR>-FLD-<&SC-I>)
    % &VAR = &<&SCR>-FLD-<&SC-I>
% END

With this code.

% REPEAT VARYING &SC-I FROM 1
% WHILE &DEFINED( &<&SCR>-FLD-<&SC-I>)
    % &VAR = &DEFVAL
% END
Previous Topic Next topic Print topic