Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using IF with LIKE
Message
 
 
To
14/10/2014 17:48:28
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01609335
Message ID:
01609376
Views:
44
>Hello Naomi
>
>Thanks for your reply, but i think i discovered the problem:
>
>If I used a variable
>local myref as string
>myref = '0.600/'
>select bi
>go top
>scan
>if like ('myref*' , bi.ref)
>?bi.ref
>endif
>endscan
>
>nothing is display, but if i use the value:
>local myref as string
>myref = '0.600/'
>select bi
>go top
>scan
>if like ('0.600/*', bi.ref)
>?bi.ref
>endif
>endscan
>
>the value is display : 0.600/1182
>
>How to solve when i use a variable !?
>
>Many thanks
>Luis Santos
myRef = '0.600/'

if like (myRef+'*', bi.ref)
  ...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform