Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format of a text field
Message
De
12/08/2005 09:16:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01040158
Message ID:
01040522
Vues:
17
>Hi
>
>I have put in 999.9 in the input mask but if I type 99 then the . it doesnt move the cursor to the other side of the decimal point I have to move it with my mouse.
>
>Thanks

this occurs if the underlying data is of type character, not numeric. Try this out:
PUBLIC oform1

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


	**************************************************
*-- Form:         form1 (c:\temp\form2.scx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   08/12/05 09:16:13 AM
*
DEFINE CLASS form1 AS form


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


	ADD OBJECT text1 AS textbox WITH ;
		Alignment = 3, ;
		Value = 0, ;
		Height = 23, ;
		InputMask = "999.9", ;
		Left = 80, ;
		Top = 44, ;
		Width = 100, ;
		Name = "Text1"


ENDDEFINE
*
*-- EndDefine: form1
**************************************************
then change this line: Value = 0 to Value = "" and you will see the difference.

HTH
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform