TextField & Format

According to LR Format is a property of TextField.
When this control looses focus, it formats automatically its contents according to the format.
When you click again on the control it recovers its full text.
My question is:
how can I recover this full text in code? If I use TexField1.Text I get what is showing (formatted text).
Thanks for your help.

[quote=138669:@Ramon SASTRE]According to LR Format is a property of TextField.
When this control looses focus, it formats automatically its contents according to the format.
When you click again on the control it recovers its full text.
My question is:
how can I recover this full text in code? If I use TexField1.Text I get what is showing (formatted text).
Thanks for your help.[/quote]

While the focus is on the control, Text contains what is shown.

Thanks Michel,

The problem is this:
I want to show only three decimals: 2.145
but in fact I want to be able to use the real value (2.145345678).

According to your suggestion I use:

TextField1.SetFocus MsgBox TextField1.text
and effectively I get the real value, but if I not move the focus, the TextField1 shows all decimals, and that’s what I want to avoid.
Of course I can move the focus to another place:

TextField1.SetFocus MsgBox TextField1.text ClearFocus
This works perfectly, but I think it is a stupid code.
Is it necessary to involve so many “set/clear focus” to get the real value. (I have several TextField controls in my window)
If Xojo is able to show it when the control gets the focus, it means that this real text is saved somewhere!
Can’t I get it directly?