Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ratc() won't where atc() will - bug?
Message
De
06/12/1999 14:39:40
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
04/12/1999 10:44:45
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00298643
Message ID:
00299313
Vues:
17
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform