class Browse
A data-editing tool that displays multiple records in row-and-column format.
Syntax
[<oRef> =] new Browse(<container> [,<name expC>])
<oRef>
A variable or property—typically of <container>—in which to store a reference to the newly created Browse object.
<container>
The container—typically a Form object—to which you’re binding the Browse object.
<name expC>
An optional name for the Browse object. If not specified, the Browse class will auto-generate a name for the object.
Properties
The following tables list the properties, events, and methods of interest in the Browse class.
Property |
Default |
Description |
|
The table that is accessed | |
false |
Whether dragged objects (normally a table or table field) can be dropped in the browse object | |
0 – None |
How the Browse object is anchored in its container (0=None, 1=Bottom, 2=Top, 3=Left, 4=Right, 5=Center, 6=Container) | |
true |
Whether rows can be added | |
BROWSE |
Identifies the object as an instance of the Browse class | |
(BROWSE) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
WindowText |
The color of the highlighted cell | |
WindowText |
The color of all other cells | |
true |
Whether pressing Tab follows CUA behavior and moves to next control, or moves to next cell | |
|
The fields to display, and the options to apply to each field | |
|
The name of the column inside which the cursor is confined. | |
0 |
The number of columns that remain locked on the left side of the browse grid as it is scrolled horizontally. | |
true |
Whether the user can alter data | |
Auto |
When a scroll bar appears for the Browse object (0=Off, 1=On, 2=Auto, 3=Disabled)
| |
Event |
Parameters |
Description |
|
After a record is added to the table | |
|
After the user changes a value | |
<left expN> |
When the mouse enters the Browse display area during a Drag&Drop operation | |
|
When the mouse leaves the Browse display area without having dropped an object | |
<left expN> |
While the mouse drags an object over the Browse display area during a Drag&Drop operation | |
<left expN> |
When the mouse button is released over the Browse display area during a Drag&Drop operation | |
|
After the user moves to a different record
| |
Method |
Parameters |
Description |
|
Copies selected text to the Windows Clipboard | |
|
Cuts selected text and to the Windows Clipboard | |
<expC> |
Simulates typed user input to the Browse object | |
|
Copies text from the Windows clipboard to the current cursor position | |
|
Reverses the effects of the most recent cut( ), copy( ), or paste( ) action
|
The following table lists the common properties, events, and methods of the Browse class:
Description
The Browse object is maintained for compatibility and is suitable only for viewing and editing tables open in work areas. For forms that use data objects, use a Grid object instead.
Two properties specify which table is displayed in the Browse object.
The view property of the parent form
The alias property of the browse object
You can specify individual fields to display with the fields property. For example, if the browse object's form is based on a query, you use fields to display fields from any of the query's tables. (You must specify a file with alias before you can use fields.)