Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql no working
Message
De
03/08/2001 07:14:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/08/2001 02:52:42
Daniel C.
InfoData Bacau
Bacau, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00539262
Message ID:
00539292
Vues:
14
>Hi,
>I have a local view cstView with 3 fields (f1 c(5), f2 c(5), f3 n(10)) and when i try to select a sum it does not work.
>
>The sql looks like this
>Sele f1,sum(f3) from cstView into array thisform aSumf1 group by 1
>
>and thet return .f. most of the times.
>
>
>Thanks

For debugging purposes, try selecting into a cursor first, and see what happens.

Oh, and try using an array that is not a property of ThisForm. The correct syntax in VFP, for an array property, would be "into array ThisForm.aSumf1", but I don't know whether this works.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform