PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment