basic.compare

Statement/BASIC Program, Releases: R91 and AP 6.2

Compares two dynamic arrays.

Syntax

compare string.exp1 to string.exp2 {present var1} {missing var2}

Description

compares two dynamic arrays.

The 'compare' statement scans through each element in string.exp1 to see if that element also exists in string.exp2. At completion, var1 contains a list of elements which exist in string.exp1 and in string.exp2. At completion, var2 contains a list of elements which exist in string.exp1 but do not exist in string.exp2.

See Also

Command Name Type Description
basic.$options Statement Sets compatibility options for the BASIC compiler.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.