>>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.
>
>Use AFIELDS() function.
As mentioned to Nick, this is too slow. If I have 50 controls on my form, I can afford to use AFIELDS() for that purpose. Thanks.