Visual InterDev

onnextclick Event

See Also            Applies To

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

Syntax

object_onnextclick

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 onnextclick event to cancel the navigation for the Recordset to which the RecordsetNavbar is bound.

Sub myRSNavbar_onnextclick()
   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