ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Two global variables with the same name but with different types are used
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 106: Redefinition of a global variable
Reason
You are trying to declare a global variable. The name of this variable has already been used by another global variable found in the project or in the current window.
Correction
Rename one of the variables or delete the useless declaration.
Example

Two global variables with the same name but with different types are used

Code triggering the error
// -- Initialization code of project
GLOBAL
b is int
 
b is string
Possible correction
Rename the second variable.
// -- Initialization code of project
GLOBAL
b is int
 
c is string
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help