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:31:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
04/12/1999 12:24:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00298643
Message ID:
00299308
Vues:
19
>>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.
>>
>
>ATC() does a case-insensitive search; in typically Fox fashion, RATC() does a double-byte search from the end - the converse operation of AT_C(). There is no direct converse of ATC()...

{slapping my forehead} that's a gotcha. I actually have read it long ago, and should have remembered. That's just inconsistent, but - well, nobody's perfetc, right? So, there's no direct converse of ATC()... and I'll have to live without it.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform