Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

RegisterUIMessage Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View Product Info

Syntax

Engine.RegisterUIMessage ( messageName)

Return Value

long

Returns the event code for the message. Use this value as the eventCode parameter of the Thread.PostUIMessageEx.

Returns -1 if there are no more message codes available for registration.

Purpose

Defines a new UIMessage which is guaranteed to be unique for the lifetime of the engine.

Remarks

Use this method to define new messages for step types or user interfaces to ensure that they do not conflict with messages defined by other TestStand add-on products. This method returns the previously assigned message code if the message is already assigned.

Parameters

messageName As String

[In] Specifies the name of the message to be registered.


See Also

Engine.PostUIMessage

Thread.PostUIMessageEx

UIMessage


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit