Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

MsgGetCurr

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the handle of the client message that called the report or remote procedure that is currently running. You can call this function only in a report or a remote procedure call.

If the report was called by a client, this function returns that client message handle. The report can then send a message back to the client. If a function was called remotely by MsgRPC(), this function returns the message handle for the remote client.

Syntax

MsgGetCurr()

Return Value

The handle for the client message. The message handle identifies the table where all data on the associated message is stored. The function returns -1 if no client called the report or function.

MsgOpen, MsgRPC

Example

! Send message back to the client.

hMsg=MsgGetCurr();

IF hMsg<>-1 THEN

MsgRPC(hMsg,"Prompt","^"Hello Client from Report Server^"",1);

END

See Also

Task Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in