PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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)
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment