Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query Control Source
Message
De
02/02/1999 11:19:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00182892
Message ID:
00182957
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform