Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Textbox
Message
 
To
28/10/1998 17:07:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00151949
Message ID:
00151967
Views:
23
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform