Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I am ashamed to ask: Variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00393489
Message ID:
00393501
Vues:
15
Try this:
mylist = "0034 0035 0056 0089 9984"

if cbank $ mylyst
     * cbank is part of the list, do something...
endif
Alex


>I have a variable "cBank"
>
>I do this to assign things in a case statement
>
>cbank = "3850" and so on...
>
>I wanta case where the varibale can be either of the things i assign. i.e. - cBank = "0036" or cBank ="3855" or cBank ="3951" or cBank = "3850" or ;
> cBank = "3950" or cBank = "4369" or cBank = "1778"
>
>
>The variable is on a query as:
>SET DEFAULT TO (gc_datapath)
> SELECT nsf.* ;
> FROM nsf ;
> WHERE BETWEEN(nsf.settdate, m.dStartDate, m.dEndDate) ;
> and nsf.portfolio = alltrim(cBank) ;
> ORDER BY bankname, mid ;
> INTO table nsf_return_items.DBF
>
>
>I get an Invlid count etc. error. when Ido this. How would I assign this variable in this case?
>
>Thanks in advance for your help.
>
>Randall
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform