Associating the Event Code with an Event Function

When you post an event, Vermont Views calls the associated event function. You must decide what function will be called when your new event type is posted. You can use an existing Vermont Views event function, or write your own event function.

All event functions must accept a pointer to a data structure and a pointer to an event structure. If you wish to use a Vermont Views function that accepts different parameters, you will need to write your own event function that accepts the required parameters and then calls the appropriate Vermont Views function. For example, if your event function needs to update a form, you would need to write an event function that calls fm_upd(). You cannot use fm_upd() as the event function to be called when your event is posted, because fm_upd() accepts only one parameter.

For more information on writing your own event functions, see Chapter 38, "Writing Event Functions."


Home Contents Previous Next