PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Reason
  • Correction
  • Example
  • Because of a typo, two labels with the same name are found in the current code
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 13: The label already exists
Reason
The code uses the GOTO statement with branching labels. A label with the same name already exists in this code.
Correction
Several labels with the same name cannot be used in the same code. Rename your labels in order to use different names for all the labels defined in this code.
Example

Because of a typo, two labels with the same name are found in the current code

Code triggering the error
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.")

ERROPEN:
Info("Unable to write into " + FileName)
Possible corrections
Modify the name of the duplicate label: the second ERROPEN must be 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 version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment