Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2.6 say problem
Message
De
23/04/2002 14:51:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/04/2002 14:38:53
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00648344
Message ID:
00648355
Vues:
19
>My code:
>@ prow+1,0 say rca + void + sold + amount
>
>rca is fine but the others I get an error stating operator/operand type mismatch. These last three are numeric so if I make it str(void) it works. At other places though, I can "SAY" numeric fine...
>
>Any suggestions?
>
>Thanks,
>Sunshine

You can SAY a single numeric value. But if you want to concatenate with "+", you have to convert everything to string.

For instance, let's suppose that only "void" is of type numeric.
...say rca + alltrim(str(void)) + sold + amount
HTH, 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