PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
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 version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment