ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / RAD / RAD Compatible 11
  • Overview
  • CAUTION: In version 12, the RAD was entirely rebuilt. The method explained in this page is kept for backward compatibility. For more details, see New RAD patterns.
  • Code structure
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
Overview

CAUTION: In version 12, the RAD was entirely rebuilt. The method explained in this page is kept for backward compatibility. For more details, see New RAD patterns.

The code of pattern elements contains the codes of different RAD generation modes:
  • the programming mode: simplified, procedural or object-oriented programming
  • the type of function used: WLanguage, SQL or ODBC commands
Depending on the choices made when generating a RAD window, the proper source code will be included in the window according to the tags inserted into the code of pattern elements.
Code structure
The different tags used are preceded by the % (percentage) symbol.
The beginning of a section includes the ifdef keyword and a code to identify the programming mode or the type of function used by the section. The end of a section is identified by the endif keyword.
Example of skeleton of initialization code of a window:
##########################################
## SECTION 1: Generation of procedural code
##########################################
%ifdef PROC
%ifdef ODBC
##########################################
# ODBC code
##########################################
// Insert the ODBC code used in procedural mode
##########################################
# End of ODBC code
##########################################
%endif

  %ifdef SQL
##########################################
# SQL code
##########################################
// Insert the SQL code used in procedural mode
##########################################
# END of SQL code
##########################################
%endif

%ifdef HF
##########################################
# "Standard" procedural code
##########################################
## Special case if the pattern is using a query
%ifdef QUERY
// Insert the code used for a query
## End of the special case if the pattern is using a query
%endif
##########################################
# END of "standard" procedural code
##########################################
%endif
%endif
##########################################
## SECTION 2: Generation of object code
##########################################
%ifdef OBJ
// Insert the object code used
%endif
##########################################
## SECTION 3: Generation of "simple mode" code
##########################################
%ifdef SIMPLE
// Insert the simplified code
%endif
For more details about the various keywords that can be used in your code, please see MDL file: Pattern description and MDL file: Window description
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help