Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: InputMask and negative sign
Message
De
08/02/2005 13:31:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
BUG: InputMask and negative sign
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00984799
Message ID:
00984799
Vues:
72
Object: TextBox with numeric ControlSource and a Inputmask

Observed: if the sign position is where a separator can appear,
to remove the minus sign is very hard
or it require of annoying indirect operations.

Repro: run and try to remove the minus sign without
- remove/add a digit ( not lose the numeric value )
- select/cancel the minus sign ( show mistaken separator )
PUBLIC oform1

SET POINT TO 
SET SEPARATOR TO 

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

DEFINE CLASS form1 AS form


	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"


	ADD OBJECT text1 AS textbox WITH ;
		Alignment = 3, ;
		Value = 0.00, ;
		ControlSource = "m.gCurrency", ;
		Format = "R", ;
		Height = 23, ;
		InputMask = "999,999.99", ;
		Left = 156, ;
		Top = 60, ;
		Width = 100, ;
		Name = "Text1"


	PROCEDURE Load
		PUBLIC gCurrency
		gCurrency=-721.45
	ENDPROC

ENDDEFINE
Comment: Depressing.

Fabio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform