Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query Control Source
Message
 
À
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:
00183028
Vues:
24
>>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

Cetin,
your solution works a treat thanks a lot

if chrtran(this.controlsource,"*+/-","") = this.controlsource
everthing is ok
endif


Regards
Pete Kane
Regards,
Peter J. Kane



Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform