Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I mistake or is truly one bad chosen?
Message
 
 
À
19/03/2003 05:14:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00767420
Message ID:
00767469
Vues:
10
Fabio,

That's the way textbox works with SET CONFIRM ON. Why would you expect FoxPro to disregard entered characters? If that would be the case, than user wouldn't be able to make correction to the entered data in the last position of the textbox. You can change SET CONFIRM to OFF and in the LostFocus event discard extra disgits.

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform