PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Details
  • The brackets
  • The square brackets
  • The comma
  • The semicolon
  • The colon
  • The dot
  • The double dot
  • The triple dot
  • The double slash
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Various operators
Overview
The various operators group the following operators:
  • "(" and ")"
The brackets
  • "[" and "]":
The square brackets
  • ","
The comma
  • "."
The dot
  • ":"
The colon
  • ";"
The semicolon
  • ".."
The double dot
  • "..."
The triple dot
  • "//":
The double slash
Details

The brackets

The brackets are used to:
  • Group the different elements of an operation while specifying the priority order. For example:
    IF (A1-B1)*5 THEN...
  • Specify the different parameters of a WLanguage function. For example:
    dCopyBlt(Image1, Image2)

The square brackets

The square brackets are indexing operators. They are used to easily identify the indexed objects.
Some examples:
  • Element of an HFSQL Array item. Example:
    Customer.Address[1]
  • Element of an array defined in WLanguage. Example:
    MyArray is array of 5 strings
    MyArray[1] = "Smith"
  • Combo Box, List Box, Table, Radio Button or Check Box control in a window. Examples:
    • Combo Box control:
      MyCombo[1] = "Miami"
    • Check Box control:
      CheckBox[1] = True

The comma

The comma is used to separate:
  • Different declarations of variables of the same type performed on the same line. For example:
    MyExample1, MyExample2 are strings
  • The different parameters of a WLanguage function. For example:
    dCopyBlt(Image1, Image2)

The semicolon

The semicolon is used to separate the different statements written on the same line. For example:
I, J are int; MyString is string

The colon

The colon is used to access the members and methods of the objects.
A double colon is used to access the global members and the global methods of a class.

The dot

The dot is used to access a sub-element. Some examples:
  • Access to a window control: MyWindow.DateEditControl
  • Access to a global variable of a window: MyWindow.gDuration
  • Access to a file item: Customer.Name
  • Access to a table column: Table.Column1
  • Access to the advanced properties: MygglConnection.Email

The double dot

The double dot is used to access a property of a control, window, report, file, item or variable. Some examples:
SCROLL_Scrollbar..MaxValue = 200
WIN_ShippingCost..Title = "Window for entering the shipping cost"
MyReport..BottomMargin = 20
MyFont..Name = "Arial"

The triple dot

The "..." operator (triple dot) is used to continue a logical line over the next physical line. For example:
IF (FamilyCode="LV") AND ...
(FamilyCode="MO") THEN
Process
END
STC_Caption = "Enter the "+...
"customer name."
The "..." operator must necessarily be used at the end of a line (and not in the middle of a line).
No character must be found after the "..." operator (except for comments).
From version 12, the "..." operator is no longer required to continue over the next line:
  • the parameters of functions or procedures
    // Procedure prototype
    PROCEDURE MyProc(Param1 is int,
    param2 is int,
    param3 is int)
    // Call to a procedure
    MyProc(5,
    DateToInteger(sGetDate),
    0)
    // Call to a WLanguage function
    Info("a",
    "b")
  • the right operands for the arithmetic and logical operators
    // Arithmetic operators (+, -, /, *) and logical operators (AND, OR)
    num is int = 5 +
            6
Notes:
  • The Ctrl + Enter shortcut is used to automatically add the "..." characters before going to the next line.
  • See Multiline strings for more details.

The double slash

The double slash is used to comment out the text that follows this sign. This text will be ignored when compiling the code and when running the project. For example:
// Performs a search in a string
// Declaration
MyString is string = "WINDEV is great"
// Test
IF Position(MyString, "W")<>0 THEN
Info("Found") // Displays the result
END
To comment out a code line or a selection of code lines, press: Ctrl + / (on the numeric keypad).
To remove the comments found in font of a code line or a selection of code lines, press: Ctrl + Shift + / (on the numeric keypad).
Note: A comment necessarily goes until the end of line.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment