Invokes the Microsoft Multimedia application.
Syntax
WndViewer(sViewerFile, Command, Data)
sViewerFile:
The Multimedia Viewer file to display.
Command:
The type of help:
1 - Displays a Viewer topic (specified in the Data field) in the main Viewer window.
2 - Displays a Viewer topic (specified in the Data field) in a pop-up window.
Data:
The context string of the Multimedia Viewer topic.
Return Value
0 (zero) if successful, otherwise an error code is returned.
Note: Citect SCADA cannot test if the topic has been found or displayed correctly. For example, if you pass an invalid topic, the viewer will open with "Viewer topic does not exist" - but this function will return 0.
Related Functions
Example
WndViewer("MyFile.MVB",1, "Contents");
! Displays the contents topic in the Multimedia file "MyFile.MVB".
WndViewer("HelpFile.MVB",2, "HelpTip");
! Displays the HelpTip topic in the Multimedia file "HelpFile.MVB" in a popup.
See Also
Published June 2018