Grid_Toolbar Class Properties and Methods

Properties

The following table lists the class properties. The properties listed include the standard Visual FoxPro class properties that the VPM Enterprise class uses and the VPM Enterprise custom properties. Where appropriate, the Comments column of the table describes a property and provides suggestions for its use.

Property & Initial Value

Comments

Standard Properties Used:

 

Name = “grid_toolbar”

 

Custom Properties:

 

cGridAlias = “”

For internal use. Contains the alias of the cursor being edited in the grid.

nLastRecord = 0

For internal use. Holds the record number of the current record. Is used in the AfterRowColChange method to determine if the row or column was changed.

Methods

The following table lists the class methods. The methods listed include the standard Visual FoxPro class methods that the VPM Enterprise class uses and the VPM Enterprise custom methods. Where appropriate, the Comments column of the table describes a method and provides suggestions for its use.

Method

Comments

Standard Methods Used:

 

AfterRowColChange

When the user makes a change or adds a record and then moves to a different record, this method asks the user if they want to save their changes.

Init

Creates the grid focus button, which allows the WriteBuffer method to move the focus off the grid (committing changes to the buffer) before changes are saved.

Scrolled

If the user scrolls while adding, ask them if they want to save the new record. Otherwise, the grid can go blank.

Custom Methods:

None

More:

Image_ Class Properties and Methods