>Dragan-
>
>Can you post an example where this happens, and I'll try it on my machine (W98 VFP 6 w/ SP3)
>
>>While debugging a long sql statement which was kept in a memo and then somewhat macro expanded, I've had to insert a Where clause at an appropriate place, if there was none, or an additional condition if it existed. So I was looking for the last occurrence of the word 'where' or the first occurence of 'from'. I noticed that ratc('where') returned zero in some situations where atc('where') returned the actual position.
>>
>>Did anyone have this before? My code runs fine now, but I just wonder if some other code that may have relied on ratc() may not be functioning.
>>
>>[NT4.0 sp4, VFP6.0 sp3]
It's quite simple:
at('donald', 'McDonald')=0
atc('donald', 'McDonald')=3
rat('donald', 'McDonald')=0
ratc('donald', 'McDonald')=0
Ed already answered this - ratc() is not a logical counterpart to atc(), but to at_c() (the double-byte character set version of atc()) instead.