ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Because of a typo, there are two labels with the same name in the code
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Error 13: Label already found
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, there are two labels with the same name in the 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
Rename the duplicate label from ERROPEN to 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)
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help