Frequently Asked Question:
Get Field Info in Visual Basic 6
I need to get the Character Limit of a field and the Font Size of the field. I have been trying each field property but these two I cannot find. Actually, I will need to set them also. However, I assume the set is the opposite of get.
Thank you.
The GetFormFieldMaxLen function will retrieve the maximum allowed length for a text form field in characters (i.e. the character limit for the specified text field). You can set the character limit using the SetFormFieldMaxLen function.
The GetFormFieldTextSize function will help you to retrieve the font size. If the value it returns is zero then this indicates that the form field auto-sizes the text to fit into the available space. You can set the text size for a form field using the SetFormFieldTextSize function.