AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / RAD / 
  • 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
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Advertencia
A partir de la versión 2024, está funcionalidad no estará disponible.
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.

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.
Code structure
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
For more details about the various keywords that can be used in your code, please see LDM file: Model description and MDL file: Window description
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 17/10/2024

Señalar un error o enviar una sugerencia | Ayuda local