|
|
|
|
|
- Overview
- WARNING: In version 12, the RAD has been completely redesigned. The method explained in this page is kept for backward compatibility. For more details, see New RAD patterns.
- Code structure
Advertencia
A partir de la versión 2024, está funcionalidad no estará disponible.
WARNING: In version 12, the RAD has been completely redesigned. 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: - 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. The different tags used are preceded by a percentage ( %). 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 a window initialization code skeleton: ########################################## ## 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|