>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