Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ratc() won't where atc() will - bug?
Message
From
06/12/1999 14:39:40
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
04/12/1999 10:44:45
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00298643
Message ID:
00299313
Views:
16
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform