Either add one line:
Replace Valor with 0.00 in Teste
or instead of Append Blank use:
Insert INTO Teste Values(" ",0.00)
Rick
>Hi folks!
>
>Take a look at this sample:
>
>Create Cursor Teste (Descricao C (30), Valor N (12,2))
>Append Blank In Teste
>
>I just create a new cursor and add one record.
>I'm using this cursor linked at a ControlSource of two TextBox. The char field works fine, but in the numeric field I have problems:
>When the numeric TextBox get the focus, the VFP don't show 0.00 - and the SelectOnEntry don't work.
>
>... and if SelectOnEntry don't work and the user type 3 and press left arrow, VFP store 30.00 in this TextBox.
>
>How can I correct it?
>
>I can't use "Default Value" because this cursor isn't in a DBC. (and I have a lot of places to do it...)
>
>By the way... I didn't use ControlSource property before, and this problem didn't happens.