Difference between revisions of "STRCOMPARE()"
From Lianjapedia
Helen.george (Talk | contribs) |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to compare two strings | Function to compare two strings | ||
− | |||
==Syntax== | ==Syntax== | ||
STRCOMPARE(<expC1>,<expC2>) | STRCOMPARE(<expC1>,<expC2>) | ||
− | |||
==See Also== | ==See Also== | ||
[[AT()]], [[CHROVERLAP()]], [[GETGID()]], [[GETUID()]], [[STRCMP()]], [[STREXTRACT()]], [[SUBSTR()]] | [[AT()]], [[CHROVERLAP()]], [[GETGID()]], [[GETUID()]], [[STRCMP()]], [[STREXTRACT()]], [[SUBSTR()]] | ||
− | |||
==Description== | ==Description== | ||
Line 17: | Line 12: | ||
This function is particularly useful in validation routines for controlling access to menu options. | This function is particularly useful in validation routines for controlling access to menu options. | ||
− | |||
==Example== | ==Example== | ||
Line 28: | Line 22: | ||
endif | endif | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Latest revision as of 11:09, 12 December 2012
Purpose
Function to compare two strings
Syntax
STRCOMPARE(<expC1>,<expC2>)
See Also
AT(), CHROVERLAP(), GETGID(), GETUID(), STRCMP(), STREXTRACT(), SUBSTR()
Description
The STRCOMPARE() function compares two strings, character by character, and returns true (.T.) if the characters in the first string <expC1>, are always greater than or equal to the equivalent characters in the second string <expC2>. The test continues up to the length of the shorter string.
This function is particularly useful in validation routines for controlling access to menu options.
Example
cUSERPRIVS = [YYYNNYNN] if strcompare(cUSERPRIVS,'NNNNNNNYN') SysMaint() else return endif
Products
Lianja Server, Lianja