Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of the textbox with the amount
Message
De
18/01/2006 18:25:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01088067
Message ID:
01088235
Vues:
19
>Here is textbox.Init method. Do you think the problem may be in there:
>
>
>IF NOT This.SetUserAccess()
>   RETURN .F.
>ENDIF
>
>IF EMPTY(This.InputMask) AND TYPE(This.ControlSource) == "C"
>	IF USED(JUSTSTEM(This.ControlSource))
>	  This.InputMask = REPLICATE("X", ;
>	    FSIZE(JUSTEXT(This.ControlSource), JUSTSTEM(This.ControlSource)))
>	ENDIF
>ENDIF
>
>IF TYPE("This.Parent.BackColor") <> "U"
>  This.DisabledBackColor = This.Parent.BackColor
>ENDIF
>
>This.SaveOriginalText()
a) Is Format empty ?

b) Why do you use InputMask XXXX... ?
IF EMPTY(This.MaxLength) and USED(JUSTSTEM(This.ControlSource))
    This.MaxLength = FSIZE(JUSTEXT(This.ControlSource), JUSTSTEM(This.ControlSource))
ENDIF
c) but you begin with ?!

Hi everybody,

We have textboxes on different forms, which seem to exibit the same strange behavior. The textboxes are unbound, have $ as format and 9,999,999.99 in InputMask (set in design time). Now, if you press the Enter, the cursor moves to the next control. You go back to that textbox and press Enter again and one of the digit disappers. In other words, each time you go back to the control and press Enter, one of the digits will vanish.

Do you know why is that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform