This Local Variable or Parameter has the Same Name as a Constant

From Xojo Documentation

Error message

You reused the name of a constant in a Dim statement or a parameter declaration.

Sample Code

Reusing the name of a constant in a local variable.

Const PI = 3.14
Dim PI As Double
pi = 3.1416

Reusing the name of a parameter as a constant:

Sub MyGreatGlobalMethod(PI As Double)
Const PI = 3.1416
End Sub

See Also

Const, Dim statements.