PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
BLOCK
In french: BLOC
The <BLOCK> keyword is used in the code editor to declare custom blocks of code. These blocks of code are used to highlight the different steps of an algorithm and to group the declarations of variables or members.
The defined code block can be expanded or collapsed.
A comment can be associated with the block. This comment will always be displayed in collapsed mode.
This keyword has no influence at run time.
Example
<BLOCK Structures for control serialization>

ControlObject is Structure
Name is string
Type is int
Properties is associative array of Variant
END

MemoryControlObject is Structure
NumberOccurrence is int
ListObjects is array of ControlObject
END

<END>
Syntax

Declaring a block of code Hide the details

<BLOCK>
  <Code to run>
<END>
<Code to run>:
WLanguage code to run associated with the block.

Declaring a code block while displaying a comment in collapsed mode Hide the details

<BLOCK Comment always displayed>
  <Code to run>
<END>
<Code to run>:
WLanguage code to run associated with the block.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment