PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • CAUTION: In version 12, the RAD was entirely rebuilt. The method explained in this page is kept for backward compatibility. See New RAD patterns for more details.
  • Code structure
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
Overview

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

The code of the pattern elements contains the codes of the 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 the pattern elements.
Code structure
The different tags used are preceded by the % symbol (percentage).
The beginning of a section uses the ifdef keyword and a code used 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 uses a query
%ifdef QUERY
// Insert the code used for a query
## End of the special case if the pattern uses 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
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment