PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Reason
  • Correction
  • Example
  • The * character is used to replace a parameter with no default value
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 810: * can only be used for a parameter with a default value
Reason
You are trying to use the * character to replace a parameter in a function or in a procedure. When defining the procedure or the function, no default value was specified for this parameter.
Correction
Two possibilities:
  • Delete the * character.
  • Give a default value to the parameter in the declaration of the procedure or function.
Example

The * character is used to replace a parameter with no default value

Code triggering the error
Compare(*,2)

PROCEDURE Compare(Number1, Number2=5)
IF Number1 > Number2 THEN
        Info(Number1 +" is greater than "+ Number2)
ELSE
        Info(Number1 +" is less than or equal to "+ Number2)
END
Possible correction
Replace the * character by a value.
Compare(5,2)

PROCEDURE Compare(Number1, Number2=5)
IF Number1 > Number2 THEN
Info(Number1 + " is greater than " + Number2)
ELSE
Info(Number1 + " is less than " + Number2)
END
Possible correction
Give a default value to the parameter.
Compare(*,2)

PROCEDURE Compare(Number1=10, Number2=5)
IF Number1 > Number2 THEN
Info(Number1 + " is greater than " + Number2)
ELSE
Info(Number1 + " is less than " + Number2)
END
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment