Check the status of a single bit from a string pointer and optionally set a new value.
Syntax:
lpStrBitSet(<pStr>,<nBitPos>,[<lNewSetting>],[<nLen>]) -> lOldSetting
Parameters:
<cStr>
Memory pointer to a string with the bits to check or set.
<nBitPos>
1 based position of the bit to check or set.
<lNewSetting>
Logical.If this parameter is provided the <nBitPos> bit will be switched on or off depending on the <lNewSetting> value.
<nLen>
Length of the string in bytes. If this parameter is not provided the bounds of the string will not be tested and an invalid <nBitPos> value can result into a internal exception.
Return Value:
Return the previous state of <nBitPos>