Syntax
GetPairLen( cColorString, nPos ) --> nLengthArguments
cColorString
nPos
Example
PROCEDURE Main()
LOCAL cColors := "W/N,N/W,W+/B"
Check( 'GetPairLen( cColors, 1 ) ', GetPairLen( cColors, 1 ), 3 )
Check( 'GetPairLen( cColors, 3 ) ', GetPairLen( cColors, 3 ), 4 )
RETURN
STATIC PROCEDURE Check( cTitle, xResult, xExpected )
QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )
RETURNOutput
GetPairLen( cColors, 1 ) OK
GetPairLen( cColors, 3 ) OK