under Xbase++ i have 3 Parameter where 3rd is optional
Code: Select all
At( <cSubString>, <cString>, [<nStartPos>] ) --> nPosition
Code: Select all
FUNCTION Countat( cString, cSign )
LOCAL nRet := 0
LOCAL nPosi := 1
LOCAL nMax := LEN( cString )
DO WHILE nPosi > 0
nPosi := AT( cSign, cString, nPosi + 1 )
IF nPosi > 0
nRet ++
ELSE
EXIT
ENDIF
ENDDO
RETURN nRet
hm ... Clipper have only 2 ParameterC:\hmg.3.4.4\HARBOUR\contrib\gtwvg\WMP\WM9TOOLS.PRG(2057) Error E0021 Incorrect number of arguments in AT
Passed: 3, expected: 2
so how to add 3rd Parameter <nStartPos>
Greetings Jimmy