Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set
Message
De
14/02/2001 21:08:05
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
À
14/02/2001 19:30:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Set
Divers
Thread ID:
00476092
Message ID:
00476119
Vues:
21
Why not just use:
IF UPPER(LEFT(contri.csource,1)) == "P"
...
Relying on SET EXACT can get you in trouble, and can be avoided all together, HTH

>I am looking at some code that another person wrote:
>IF (contri.csource="P")
>
>then do some
>else
>endif
>what my problem is that contri.csource is a eight character field in which some case it may begin with "P" or whatever. However the code is not catching this I have set exact off what other setting could I have on that wouldn't catch this when say for instance contri.csource = "PXXXX"
>
>Thanks
>
>Milt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform