How do I check for the number of times a double quote occurs in a string using occurs()? I hate to step through the entire string char by char checking for asc(lcstring,i)=34. Assuming that a character string has another character string enclosed within double quotes, how do I count the number of times the double quotes exist in the string? Is there an easier way?
Here's the slow, long way checking for the letter k:
xiniline="dkdksska1538."
result=";"
FOR i = 1 TO LEN(xiniline)
result=result+ALLTRIM(STR(ASC(SUBSTR(xiniline,i,1))))+";"
ENDFOR
? (OCCURS('107',result))
I need to count the number of times a "" appears in the string.
TIA,
Tracy
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"