Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wrapping text in grid
Message
De
08/03/2016 04:30:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/03/2016 19:50:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01632642
Message ID:
01632650
Vues:
56
>Thank you Sergey - it works. Have you any idea how to PAD() a field length in a SELECT statement? As in select a,b,c,PAD(d,25). Adding the PAD() there gives an error - is there any way of adding to the length of d in the cursor the data is put into?

Actually, that's a safer way to ensure length, as Fox will judge the length of an expression with variable length by the first record, which will probably be too short. PadR() is the best choice, or "cast(... as c(25)) as OutputFieldName". The "as name" part is very handy because otherwise you may get exp_1 or some such meaningless name.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform