Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting a numberic variable into a string
Message
 
To
18/07/2001 17:42:20
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00532248
Message ID:
00532260
Views:
11
>Hi All:
>
>I have a situations where the table consists of 2 numeric fields. Programatically, I have two numeric variables calculate the numbers that are to be inserted into the 2 numeric fields in the table. This has been accomplished.
>
>I have another character field in the same table, where I want to concatenate the values stored in the two numeric variables described above, to be stored in this character field.
>
>Example: nVar1 = 8, nVar2 = 00
>Desired Outcome is the value "8:00 am" which is to be stored in the character field.
>
>Your guidance is appreciated. Thanks.
>
>- Ravi

Convert numbers to strings using str() or trans() and put them together with the string concatenation operator +.

BTW, x = 00
? x returns 0. <g>
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform