AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Errores / Errores WLanguage
  • Reason
  • Correction
  • Example
  • A global variable is declared in the click code of a button found in the "WIN_Menu" window
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
Error 101: Declaration of global variable not allowed
Reason
You are trying to declare a global variable in a process where this type of declaration is not allowed.

Reminder: The global variables must be declared in:
  • The initialization code of the project in order to be used in all the processes of the project (code of project, code of windows and code of controls).
  • The opening code of a window in order to be used in all the processes of the window (code of the window and code of the controls found in the window).
  • The load code of the page in order to be used in al the browser processes of the page (code of the page and code of the controls found in the page).
Correction
Declare your global variable in the appropriate code.
Example

A global variable is declared in the click code of a button found in the "WIN_Menu" window

Code triggering the error
// -- Click code of BTN_Display
GLOBAL
Result_Read is boolean
Possible correction
Declare the global variable in the "Global declarations" process of the window.
// -- Global declarations of WIN_MENU
GLOBAL
Result_Read is boolean
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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