ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / DLNA/UPnP functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<upnpService variable>.ExecuteAction (Function)
In french: <Variable upnpService>.ExécuteAction
Runs an action on the UPnP service.
Example
MyService is upnpService
...
 
 
SWITCH TABLE_ParamIN.Count()
CASE 0
arrResult = MyService.ExecuteAction(EDT_Action)
IF ErrorOccurred THEN
Info(ErrorInfo(errFullDetails))
RETURN
END
CASE 1
arrResult = MyService.ExecuteAction(EDT_Action, ...
TABLE_ParamIN[1].COL_Param)
IF ErrorOccurred THEN
Info(ErrorInfo(errFullDetails))
RETURN
END
CASE 2
arrResult = MyService.ExecuteAction(EDT_Action, ...
TABLE_ParamIN[1].COL_Param, ...
TABLE_ParamIN[2].COL_Param)
IF ErrorOccurred THEN
Info(ErrorInfo(errFullDetails))
RETURN
END
OTHER CASE
Info("Not supported")
RETURN
END
Syntax
<Result> = <Service>.RunAction(<Action> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Array of character strings
Array of Strings variable containing the result of the UPnP action run.
<Service>: upnpService variable
Name of upnpService variable corresponding to the service on which the action will be performed.
<Action>: Character string
Action to call on the service.
<Parameter 1>: Expected type of value (optional)
First parameter to pass to the UPnP service.
<Parameter N>: Expected type of value (optional)
Nth parameter to pass to the UPnP service.
Remarks
If the action is not run, the ErrorOccurred variable is set to True and ErrorInfo returns the details of the error.
Component: wd300device.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help