IEstimate.RaiseEvent Method

Raises the specified event for this estimate.
Function RaiseEvent( _ 
ByVal eventName As String
) As Boolean
This language is not supported or no code example is available.
bool RaiseEvent( 
string eventName 
)
This language is not supported or no code example is available.

Parameters

eventName
string

The language neutral name of the event to be raised. The event names displayed in Events Management are localized and thus cannot be passed in this parameter. Instead, use the constants from EstimateEvents class.

Return Value

bool

false if the event was executed without problems. true if there was a problem and the event was not executed.

Remarks
 
The estimate events are automatically raised on various occasions. They can be defined in Automation - Events Management. However, the events are suppressed when a macro (or an event) is being executed. This is to prevent various problems. So when a macro is executed, no event will be raised.

This method helps overcoming this limitation and allows for explicitly calling an event. It's up to the caller to take care about possible problems. For example, never call an event from a macro, if the event itself calls this macro. This would result in an endless loop and QDV would freeze.

Version
 
Available since QDV 7.22.944.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition