You can use RAISEEVENT( ) to raise, or trigger, an event from a custom method. Though RAISEEVENT( ) applies primarily to custom methods, you can use it for raising native events and methods.

RAISEEVENT( oEventSource, cEvent [, eParm1...] )

Parameters

oEventSource   

Specifies the event source, which must be a valid Visual FoxPro object.

cEvent

Specifies the name of the event, method, or property you want to raise.

eParm1...

Specifies one or more parameters to pass if the method has parameters.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also