Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Anomaly
Message
 
 
À
06/08/2004 16:19:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00931316
Message ID:
00931445
Vues:
30
Steve,

In VFP8 and earlier, the ALLTRIM() removes spaces only. In VFP9 you will be able to specify what characters to remove.
? alltrim(x, SPACE(1),CHR(13),CHR(10)),"you"
>I've never seen alltrim() get rid of trailing carriage returns...and can't get it to in VFP8.
>
>In command window:
>
>x = "hey"+chr(13)+chr(10)+chr(13)+chr(10)
>? alltrim(x),"you"    && you will be a few lines below "hey"
>y = alltrim(x)
>? len(y)              && shows 7
>
>
>
>>Yes, that's what I'm saying.
>>
>>>Craig,
>>>
>>>Are you saying that alltrim() gets rid of trailing carriage returns?
>>>
>>>>Yup. Was anything acutally printed on the second page or was it just blank?
>>>>
>>>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform