>Now, I need something similar for the type of the field and the number of decimals for numeric field.
>
>I want to modify my base textbox control to be able to set the input mask automatically.
I think you can use AFIELDS() for that, it contains all the information about fields in table, but I am not sure will it be fast enough.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison