Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2.6 say problem
Message
From
23/04/2002 14:51:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/04/2002 14:38:53
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00648344
Message ID:
00648355
Views:
17
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform