Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric Textbox
Message
 
À
28/10/1998 17:07:35
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00151949
Message ID:
00151967
Vues:
22
Ok, thanks for your help Nancy.

>Hi, Paul
>
>This works.
>
>
>X=CREATEOBJECT( 'myform' )
>x.show()
>READ EVENTS
>DEFINE CLASS myForm AS FORM
>	ADD OBJECT myTextBox1 AS TextBox
>	ADD OBJECT myTextBox2 AS myTextBox
>ENDDEFINE
>
>DEFINE CLASS myTextBox AS textbox
>	format = "Z"
>	value = 0
>	TOP = 41
>ENDDEFINE
>
>DEFINE CLASS myButton AS BUTTON
>	PROCEDURE click
>		CLEAR EVENTS
>	END PROCEDURE
>ENDDEFINE
>
>
>Notice that when the control has focus it will show the 0, regardless of the format property (which is a good thing, IMO).
>
>>I don't think so. I changed the format to ZK and then switch the value property of the textbox back to default and then I can see in debug that the type is character.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform