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...
<Source>.JSONToRecord (Function)
Imports JSON data into the current record.
<Source>.CancelDeclaration (Function)
Allows you to: Delete a declaration made previously using HDeclare, HDeclareExternal,...
<Source>.RestorePosition (Function)
Restores the context of a previously saved file (HSavePosition): current record, filter, pointers.
<Map>.DisplayArea (Function)
Moves the map displayed in the Map control so that the specified geographic area can be seen...
<Map>.AddImage (Function)
Adds a new image to the map displayed in a Map control.
<Map>.AddShape (Function)
Adds a new shape (polygon, line, circle) to the map displayed in a Map control.
<Map>.DeleteImage (Function)
Deletes an image drawn on the map displayed in a Map control.
<Map>.DeleteShape (Function)
Deletes a shape drawn on the map displayed in an Map control.
<Map>.PopupDisplayed (Function)
Indicates whether the popup of a marker in a Map control is displayed.
<Map>.ModifyImage (Function)
Modifies an image drawn on the map displayed in a Map control.
<Map>.ModifyShape (Function)
Modifies a shape drawn on the map displayed in a Map control.
<Map>.LimitArea (Function)
Limits the geographic area displayed in the Map control.
<Map>.ClosePopup (Function)
Closes the popup of a marker displayed in the Map control.
<Map>.DisplayPopup (Function)
Opens the popup of a marker displayed in a Map control.
<Map>.ChangeStyle (Function)
Changes the style of the map displayed in the Map control.
<Map>.GetStyle (Function)
Returns the style used by the map displayed in the Map control.
<zipArchive>.SelectFile (Function)
Selects files from an archive.
<Source>.RecordToString (Function)
Converts the content of the current record to string (in a data file, HFSQL view, query, etc.).
<modbusSession>.ReadRegister (Function)
Reads one or more registers from a Modbus slave, starting at a specific address.
<modbusSession>.ReadFloat (Function)
Reads one or more single-precision floats from a Modbus slave, starting at a specific address.
<modbusSession>.ReadBit (Function)
Reads one or more bits from a Modbus slave, starting at a specific address.
<modbusSession>.WriteRegister (Function)
Writes one or more registers (16-bit values) to a Modbus slave, starting at a specific address.
<modbusSession>.Disconnect (Function)
Closes the Modbus session.
<modbusSession>.WriteBit (Function)
Writes one or multiple bits to a specific address in a Modbus slave.
<modbusSession>.WriteFloat (Function)
Writes one or more single-precision floats to a Modbus slave, starting at a specific address.