ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • 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
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 107: Redefinition of the parameter
Reason
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.
Correction
Change the name of one of the parameters or delete the second declaration (that is useless).
Examples

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 error
PROCEDURE CalcPrice(Price, VATRate, Price)
Possible correction
Delete the useless parameter.
PROCEDURE CalcPrice(Price, VATRate)
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help