Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling Truncation in Character Field Objects
Message
 
 
À
11/03/2003 12:57:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00764341
Message ID:
00764410
Vues:
24
>The default behavior for truncating character strings that are too long to fit in a field object seems to be to truncate starting at the last blank.
> IOW, if the string is "My Big String", and there is only enough room for "My Big Str", VFP will show only "My Big".
> I would like to show all the data that fits (in the above example: "My Big Str"). Is there any way to do this?
> I don't want to count characters and compare this to the width of the field control because we can't accurately know the length of each character.
> Thanks.

The only way I know is to convert spaces between words into some other character, like CHR(183), for example.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform