ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Examples
  • Two local variables with the same name but with different types are used
  • Two local variables have the same name and the same type
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 105: Redefinition of the local variable
Reason
You are trying to declare a local variable that was already declared in the current process.
Correction
Rename one of the variables or delete the useless declaration.
Examples

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

Code triggering the error
b is int
 
b is string
Possible correction
Rename the second variable.
b is int
 
c is string

Two local variables have the same name and the same type

Code triggering the error
I is int
FOR I = 1 TO 10
...
END
...
 
I is int
FOR I = 1 TO 10
...
END
Possible correction
Delete the second declaration (that is useless).
I is int
FOR I = 1 TO 10
...
END
...
 
FOR I = 1 TO 10
...
END
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help