Percentage
Applies to
VAccess
Description
Sets the record to retrieve at the specified relative position along the currently selected index path in the associated PSQL file, or returns the relative position of the current record.
Syntax
object.Percentage [= value]
The Percentage property syntax has these parts:
 
Remarks
Setting this property at run time performs a PSQL GetByPercentage operation on the associated file. The status of the operation is returned in the Status property of the control, a status of zero indicating success. Reading this property at run time performs a PSQL FindPercentage operation and returns the result of the operation. The range of values is 0 to 10,000 (or 0 to 0xFFFFFFFF if you specify a granularity; see Get By Percentage (44) and Find Percentage (45) of Btrieve API Guide), representing 0.00 to 100.00 percent. The accuracy of the percentage operation is subject to various conditions.
If the ExtendedOps property is False, setting this property at run time performs a GetByPercentage operation on the associated file. If ExtendedOps is True, setting this property will move the current Row property value to the specified percentage within the current extended operations buffer.
If the ExtendedOps property is False, reading this property at run time performs a FindPercentage operation and returns the result of the operation as the property value. If ExtendedOps is True, the retd value will represent the percentage of the current row within the current extended operations buffer.
Example
'to establish positioning on a record half way
'through the current index path
Customer.Percentage = 5000
 
'to set the scroll box of a scroll bar to
'the current record's position
VScroll1.Max = 10000
VScroll1.Min = 0
VScroll1.FieldValue = Customer.Percentage
See Also
Affects: Buffer