Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Matching & WildCards
Message
De
22/05/1998 20:29:02
 
 
À
21/05/1998 17:29:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00100984
Message ID:
00101346
Vues:
28
>Is there any way to access the internal VFP functionality that does string comparisons with wildcards?
>
>I'd like to be able to tell whether these strings match:
>
>"*.TMP" & "FOO.TMP"
>
>"ARC???.*" & "ARCHIV.BAR"
>
>... etc.
>
>Clearly, VFP has this functionality for SYS(2000), and the WildCardMatch method of the calss browser, but is there any way I can get a hold of it?
>
>-- jas

SET EXACT OFF
?LEFT("ARC???.*",3) = "ARCHIV.BAR" && returns .T.
?"TMP" = RIGHT("FOO.TMP",3) && returns .T.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform