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 |
AddLineFeeds | 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. |
AllowTabs | Logical | Indicates whether Tabs can be entered. |
Format | Character | Specifies Xbase-style formatting functions. |
HideSelection | Logical | Indicates whether selected text retains its highlight when focus moves to another control. |
MaxLength | Numeric | Specifies the maximum number of characters that can be entered. |
ScrollBars | Numeric | Indicates whether the edit box has scrollbars. |
SelStart, SelLength | Numeric | Indicate the starting position and length of the selected text. |
SelText | 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 |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.