Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem selecting into a table
Message
From
05/04/2002 06:38:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/04/2002 15:42:34
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00641079
Message ID:
00641300
Views:
12
>Here's my code:
>
>select alltrim(str(int(number))) as number from table into table1
>
>(number = 345.0000)
>However, number comes in to table1 as a char 10 when I want it to be char 3. I thought the alltrim would fix that but it didn't.
>
>Any suggestions?
>
>Thanks,
>Sunshine

Refrain from selecting variable-sized fields. Use padr() instead of alltrim().
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