|
|
|
|
- Reason
- Correction
- Examples
- A parameter of the procedure and a variable local to the procedure have the same name
- Several parameters of the procedure have the same name
Error 107: Redefinition of the parameter
You are using the same name: - for two parameters in the same procedure,
- for a parameter and a local variable of the procedure.
Reminders: - The parameters of a procedure are considered as being variables local to this procedure.
- The parameters of the opening code of the window (which means in the procedure declared in the opening code of the window) are considered as being variables global to the entire window.
Change the name of one of the parameters or delete the second declaration (that is useless). A parameter of the procedure and a variable local to the procedure have the same name Code triggering the error PROCEDURE CalcPrice(Price, VATRate) Â Price is real
Possible correction Rename the variable or the parameter. PROCEDURE CalcPrice(Price, VATRate) Â UnitPrice is real
Several parameters of the procedure have the same name Code triggering the errorPROCEDURE CalcPrice(Price, VATRate, Price)
Possible correction Delete the useless parameter. PROCEDURE CalcPrice(Price, VATRate)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|