EditBox
The EditBox is Visual FoxPro's answer to the @ ... EDIT of Xbase-gone-by. It provides an area for freeform text editing, complete with scrolling, tabs and so forth.An edit box can be based on a memo field, a character field or variable, or just a literal character string.
Property |
Value |
Purpose |
Logical |
Indicates whether a linefeed character (Chr(10)) should be added after each return character (Chr(13)) when data is transferred to the ControlSource or the control loses focus. |
|
Logical |
Indicates whether Tabs can be entered. |
|
Character |
Specifies Xbase-style formatting functions. |
|
Logical |
Indicates whether selected text retains its highlight when focus moves to another control. |
|
Numeric |
Specifies the maximum number of characters that can be entered. |
|
Numeric |
Indicates whether the edit box has scrollbars. |
|
Numeric |
Indicate the starting position and length of the selected text. |
|
Character |
The currently selected text. |
Example |
* Set an edit box (Edit1) to have no scroll bars, * to accept tabs and to accept no more than 50 characters. ThisForm.Edit1.ScrollBars = 0 ThisForm.Edit1.AllowTabs = .T. ThisForm.Edit1.MaxLength = 50 |
See Also |
AddLineFeeds, AllowTabs, Format, HideSelection, MaxLength, MouseEnter, MouseLeave, ScrollBars, SelLength, SelStart, SelText, Textbox |