PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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