TextBox
The text box is Visual FoxPro's answer to the @...GET of old. It lets you enter any alphanumeric data, and can store it as any data type. Property | Value | Purpose |
Format | Character | Contains a string of formatting codes to be applied to the entire text box contents. |
HideSelection | Logical | Determines whether selected text keeps its highlight when focus moves to another control. |
InputMask | Character | Contains a string of format characters that specify a template for the input value. |
Margin | Numeric | Specifies the size of the margin around the entire interior of the text box. |
MemoWindow | Character | Specifies the name of a window to be used for expanding the text, if the ControlSource is a memo field. Backward compatibility only. |
OpenWindow | Logical | Supposed to specify whether the MemoWindow opens automatically when focus lands on the text box. Doesn't. Backward (and badly implemented) compatibility only. |
PasswordChar | Character | Specifies a character to display instead of the user's input. Allows text boxes to be used for input of passwords. |
SelectOnEntry | Logical | Determines whether the text in the text box is highlighted when the user tabs into it. Has no effect when the user clicks to get in. |
SelLength, SelStart | Numeric | Length and starting position of the currently selected text. |
SelText | Character | Currently selected text. |
Text | Character | Contains a character representation of the value of the text box with no formatting. |
Event | Purpose |
KeyPress | The user pressed a key while focus was in the text box. |
Example | * The class here is designed for collecting * US and Canadian phone numbers. DEFINE CLASS PhoneText AS TextBox Format = "R" InputMask = "(999)999-9999" ENDDEFINE |
See Also | EditBox, Format, HideSelection, InputMask, KeyPress, Margin, MemoWindow, OpenWindow, PasswordChar, SelectOnEntry, SelLength, SelStart, SelText, Text |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.