Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I mistake or is truly one bad chosen?
Message
De
19/03/2003 05:14:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
I mistake or is truly one bad chosen?
Divers
Thread ID:
00767420
Message ID:
00767420
Vues:
32
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform