Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EditBox mystery
Message
De
10/06/2014 07:25:45
 
 
À
10/06/2014 06:31:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01601421
Message ID:
01601549
Vues:
37
>>>Hmm - I'm only interested in straight text. The EditBox isn't bound so I wouldn't have thought 'Value' comes into it (although I could be wrong :-[)
>>
>>Just to be certain: you mean both Editboxes are not bound ?
>
>Ah. The first Editbox (which adds the linefeed) is not bound - the Value property is set in a method.
>The second is data bound to a memo field in a VFP table. Still stuck on understanding how this might affect things tho.
>
>Docs say VFP inserts linefeeds 'when user code reads the Value property' (I'm not doing this) or when 'the EditBox loses focus' (which,AFAICS, it does not).
>
>Must say this smells like a bad design to me - why didn't they just add the linefeeds to the Value 'get' and NOT mess with the text buffer itself ?
>And, IAC, why, in the first editbox, isn't the linefeed added immediately after the CR is typed rather than when the next character is entered.
>
>Interested to know what you see. I've just stuck the following code in the InteractiveChange event:
s = THIS.TEXT
>FOR x = 1 TO LEN(s)
>DEBUGOUT ASC(SUBSTR(x,1)
>ENDFOR
no time to horse around here ;-)
but I was just wondering on your wording and speculating from FPD / FPXenix history if the Unix/Windows different CR/LF conventions come into play here in the historic parts of the code if one of the Editboxes is bound and the other not. Just a very wild guess from subconscious....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform