Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AVERAGE doesn't work with NEXTand FOR: why ??
Message
De
19/12/2005 01:54:33
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
19/12/2005 01:42:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01079075
Message ID:
01079080
Vues:
22
>
>
>create cursor foo (f1 N(2),f2 c(2))
>insert into foo values(2,"AA")
>insert into foo values(1,"BB")
>insert into foo values(2,"AA")
>insert into foo values(3,"BB")
>insert into foo values(2,"AA")
>insert into foo values(3,"BB")
>insert into foo values(2,"AA")
>
>Average f1 for f2 == "BB" to m.myvar
>
>?m.myvar && this returns 2
>
>Average f1 all WHILE _tally < 1 for f2 == "BB" to m.myvar
>
>?m.myvar && this returns 1
>
isnt m.myvar = 7/3 in this case ?

Average f1 for f2 == "BB" to m.myvar

also can u explain this more clearly ?

Average f1 all WHILE _tally < 1 for f2 == "BB" to m.myvar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform