GT_ISFLAG()
Test the setting of a flag in a bit flag string.
- Syntax
-
- GT_IsFlag(<cFlagString>,[<nFlag>]) --> lSetting
- Arguments
-
- <cFlagString> is a bit flag string created with GT_NewFlag()
- <nFlag> is the flag to be tested.
- Returns
-
- A boolean value, TRUE if the flag is on, FLSE if it's off.
- Description
-
- GT_IsFlag() is used to test the state of a flag with a bit flag string.
Examples
// Print the setting of the flags in a flag string called ``cDave''
for nFlag := 1 to (len(cDave)*8)
? "Flag number ",nFlag," == ",GT_IsFlag(cDave,nFlag)
next
- See Also