Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number search
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618274
Message ID:
01618275
Vues:
93
This message has been marked as the solution to the initial question of the thread.
>I have hit a snafu. I have populated a character field with a series of numbers separated by '#'
>so enos contains the following #26#36#43
>I now examine the field for numbers and when my variable enum searches for the number '2' unfortunately it finds it.
>
>if  enum $ (Enos)  =.T. 
>
>
>is there a way to modify that search line so that it will read that number as 26 and issue a .F. for that search of 2.

Add separator to avoid partial matches. Also no need to compare to .T., result is logical already
if  ("#" + enum + "#") $ (Enos + "#") 
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform