Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace !empty(alias.field) with len(alias.field)>0
Message
 
 
To
15/02/2016 13:57:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01631431
Message ID:
01631497
Views:
46
>>Hi,
>>
>>I need to create a function to replace the expression "!empty(mytable.myfield)" with "len(mytable.myfield)>0" (to make it work for SQL server).
>>I played with SUBSTR and STRTRAN functions but can't seem to find a way to get around the fact that the "mytable.myfield" changes from one expression to another. So it has to be "generic."
>>I would appreciate any suggestions
>
>
>x="!empty(mytable.myfield)"
>? STRTRAN(m.x,"!empty(","0<LEN(")
>
Thank you!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform