< Futurebasic < Language < Reference

FBCompareContainers function


FBCompareContainers

Function

✔ Appearance ✔ Standard ✔ Console

Syntax

result& = FN FBCOMPARECONTAINERS(a$$,b$$)

Revised

June 12, 2000 (Release 3)

Description

This function returns a result that represents how container a$$ compares to container b$$. If the result& is zero, the containers are identical. A negative result (-n&) provides the character position at which container a$$ was found to be less than container b$$. A positive result give the character position where container a$$ became greater than container b$$.

Result

Indicates

Negative

container a$$ < container b$$

Zero

container a$$ = container b$$

Positive

container a$$ > container b$$

Note:
With this function, containers are evaluated by ASCII (not numeric) values.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.