Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I mistake or is truly one bad chosen?
Message
From
19/03/2003 05:14:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
I mistake or is truly one bad chosen?
Miscellaneous
Thread ID:
00767420
Message ID:
00767420
Views:
33
Hi all,


From VFP3, if I paste on Textbox or EditBox, Text is filled from Left to Right ( as typing on keyboard),
if last Text position is caught up, the last Text character is rewritten until ClipText string is completed, the last character of ClipText is put on last character of textBox, the inner characters in excess are lost!

critical example code ( moneies !!!! )

PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN

DEFINE CLASS form1 AS form

ADD OBJECT text1 AS textbox WITH ;
Value = $0, ;
InputMask = "9999.99", ;
Left = 100, ;
Top = 50

PROCEDURE Click
_CLIPTEXT='1234.1289' && from Excel simulation
KEYBOARD '{CTRL+V}' PLAIN
ENDPROC

ENDDEFINE

Click on form.
Result 1234.19 !!!!

I expected 1234.12 ( or 1234.13 ).

This problem occur also on keyboard typing !!!!

In order to resolve it, I must intercept the event keypress (can use NODEF for the cut inner code of VFP).

Truly annoying !

The correct choice (for me) is to interrupt the insertion of characters. But VFP5, vfp6, vfp7, vfp8 have been produced and null it is changed.

I mistake ?

Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform