Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query Control Source
Message
From
02/02/1999 11:19:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00182892
Message ID:
00182957
Views:
18
>Hello All,
>Am I correct in thinking you could use a comma delimited list as one of the args for the $ operator, what I am trying to do is, in the init of my base grid class I query the controlsource for each column, if there's an operator present I want to skip the column, I thought I could do as follows
>
>if "*,+,/,-" $ this.controlsource
> whatever
>endif
>
>but it doesn't work, any suggestions welcome apart from if "*" $ this.controlsource or "+" $ this.controlsource etc...
>
>Regards
>
>Pete Kane
Pete,
I think you misunderstood the $ operator. It takes the left part and checks existence on the right as a whole (in your case it was checking "*,+,/,-" and always failing).
"E"$"ABCDEFG" && .t.
"AD"$"ABCDEFG" && .f.
You might try this :
chrtran(this.controlsource,"*+/-","") = this.controlsource
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform