ComponentOne List 8.0 for ActiveX
PostMsg Method

 

PostMsg Method

The PostMsg method is used in conjunction with the PostEvent event to postpone operations which are illegal within the control's events.

Syntax

object.PostMsgMsgId

Arguments

MsgId is an integer that identifies the message being posted.

Return Value

None

Remarks

This method applies to TDBList and TDBCombo controls.

If the PostMsg method is called, the control will fire the PostEvent event with the MsgId of the corresponding PostMsg invocation after all pending operations are completed. You can then safely perform all desired operations in the PostEvent event.

You can use any non-zero integral value for MsgId, which will be passed to the PostEvent event for identification purposes.

The special case where MsgId is zero is used to clear any pending PostMsg invocations which have not yet been processed. A PostEvent event will fire for this case.

Note: Take care to avoid recursive situations when using PostMsg and PostEvent.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback