ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Version: 2025

Declaring a procedure/a function
The different syntaxes for declaring a procedure...
Global procedure/function
A global procedure can be used in all the processes or events of the project.
Parameters of a procedure/function
You have the ability to pass parameters to a procedure.
Passing parameters
The parameters can be passed to a procedure...
Parameters of a procedure with a variable number of parameters
When the procedure uses a variable number of parameters, you must be able to handle the different parameters passed to the function in the code of the procedure.
Typecasting of parameters
The description of the parameter type is optional...
Local procedure
Two types of procedures are available...
<mqttSession variable>.Unsubscribe (Function)
Allows you to unsubscribe from a MQTT notification.
<mqttSession variable>.UnsubscribeAll (Function)
Allows you to unsubscribe from all the existing subscriptions.
<mqttSession variable>.Publish (Function)
Publishes a message on the MQTT broker.
<mongoDatabase variable>.CreateCollection (Function)
Creates a collection in a MongoDB database while specifying the options of this collection.
<mongoDatabase variable>.ExecuteCommand (Function)
Runs a generic command on a MongoDB database.
<mongoCollection variable>.ExecuteCommand (Function)
Runs a generic command on a MongoDB collection.
<AutomaticEvent variable>.Wait (Function)
Locks the current thread while waiting for the specified event to be opened.
<ManualEvent variable>.Wait (Function)
Locks the current thread while waiting for the specified event to be opened.
<AutomaticEvent variable>.Close (Function)
Closes a synchronization event between several threads.
<ManualEvent variable>.Close (Function)
Closes a synchronization event between several threads.
<ManualEvent variable>.Open (Function)
Opens a synchronization event between several threads.
<AutomaticEvent variable>.Open (Function)
Opens a synchronization event between several threads.
<upnpService variable>.ExecuteAction (Function)
Runs an action on the UPnP service.
<upnpDevice variable>.ModifySharpness (Function)
Changes the sharpness of a UPnP device.
<upnpDevice variable>.ModifyVolume (Function)
Change the volume of a UPnP device.
<upnpDevice variable>.GetContrast (Function)
Retrieves the contrast of a UPnP device.
<upnpDevice variable>.GetBrightness (Function)
Retrieves the brightness of a UPnP device.
<upnpDevice variable>.GetMute (Function)
Retrieves the 'Mute' status of a UPnP device....
<upnpDevice variable>.GetSharpness (Function)
Retrieves the sharpness of a UPnP device.
<upnpDevice variable>.GetVolume (Function)
Retrieves the volume of a UPnP device.
<upnpDevice variable>.MediaStop (Function)
Stops reading the current media on the UPNP device.
<upnpDevice Variable>.MediaPlay (Function)
Starts reading the current media on the UPnP device.
<upnpDevice variable>.MediaOpen (Function)
Opens a media on the UPnP device.
<upnpDevice variable>.MediaPause (Function)
Pauses the reading of the current media on the UPnP device.
<upnpDevice variable>.ModifyContrast (Function)
Modifies the contrast of a UPnP device.