PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Reason
  • Correction
  • Example
  • A typo was made in the name of the label
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 11: The label is unknown
Reason
This code line uses the GOTO statement. The label used in the GOTO statement was not defined in the current code.
Correction
Check whether the label exists and use its name in the GOTO statement (the syntactic coloring enables you to check the existence of the label name).
Example

A typo was made in the name of the label

Code triggering the error
Res = fOpen(FileName, foWrite)
IF Res = -1 THEN GOTO ERROPEN
Res = fWrite(Res,"Process OK")
IF Res = -1 THEN GOTO ERRRITE
...
RETURN

ERROPEN:
Info("The " + FileName + " file cannot be opened. Check its existence.")

ERRWRITE:
Info("Unable to write into " + FileName)
Possible correction
Check the name of the labels and correct the typo. In this example, ERRWITE is replaced by ERRWRITE.
Res = fOpen(FileName, foWrite)
IF Res = -1 THEN GOTO ERROPEN
Res = fWrite(Res,"Process OK")
IF Res = -1 THEN GOTO ERRWRITE
...
RETURN

ERROPEN:
Info("The " + FileName + " file cannot be opened. Check its existence.")

ERRWRITE:
Info("Unable to write into " + FileName)
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment