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.