General information
Title:
I mistake or is truly one bad chosen?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only