Visual InterDev

onpreviousclick Event

See Also            Applies To

Occurs when the user presses and releases the RecordsetNavbar's "Previous" button.

Syntax

object_onpreviousclick

Parameters

object

A RecordsetNavbar script object.

Remarks

The event occurs when the user uses the mouse or the spacebar to press the button.

The RecordsetNavbar uses a unique event for each of its four buttons. The events are onfirstclick, onpreviousclick, onnextclick, and onlastclick.

For HTML buttons created by the Button object, use the onclick event.

Example

You can use the onpreviousclick event to cancel the navigation for the Recordset to which the RecordsetNavbar is bound.

Sub myRSNavbar_onpreviousclick()
   if sUserName = "Frank" then
      ' don't let Frank move these recordsets around, 
      ' he'll run the server right into the ground
      myRSNavbar.cancelOperation()
   end if
End Sub