Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem selecting into a table
Message
De
05/04/2002 06:38:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/04/2002 15:42:34
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00641079
Message ID:
00641300
Vues:
13
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform