PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Reason
  • Correction
  • Example
  • The * character is used to replace a parameter with no default value
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
Error 810: The * character can only be used to replace 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 version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment