AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Errores / Errores WLanguage
  • 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
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local