Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number search
Message
 
 
To
13/04/2015 03:04:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618274
Message ID:
01618275
Views:
94
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform