Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filling a text variable with lines ending with cr/lf.
Message
 
À
04/04/2000 09:29:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00354764
Message ID:
00355064
Vues:
23
Hi John,

I believe it is still better to use CRLF when you fill the Editbox.Value programmatically. It will be more consistent with other places in the app where you can use CRLF for, say to form variable for STRTOFILE(). In this case you have it in one place instead of adding CR only and rely on AddLineFeeds setting.
I think the main purpose of AddLineFeeds is in interactive adding text to the editbox.

>Did everyone forget about...
>
>AddLineFeeds Property
>
>Specifies that the EditBox should insert linefeed characters (CHR(10)) after carriage return characters (CHR(13)) within the text of an EditBox whenever the Value property is read or whenever the value is stored to the ControlSource. Available at design time and run time.
>
>(SP3 addition)
>
>
>
>>>>For the most part. I know alot of people have a constant CRLF defined as chr
>>>>(13) + chr(10) globally for the app
>>>
>>>Style note on this: I usually define it as vfCRLF, for parallelism with vbCRLF. Your Mileage May Vary....
>>
>>...And I call it CF_TEXT for parallelism with the Platform SDK. Surprised? Didn't think so. Void where prohibited. Children under 18 should get their parents permission before call. Georgia residents add 6.5% sales tax.:-)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform