ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Examples
  • Two structures with the same name are declared in the same process
  • Two structures with the same name but using different members are found in the same process
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Error 120: Redefinition of the structure
Reason
You are trying to declare two structures with the same name in the same process.
Correction
Rename one of the structures or delete the useless declaration.
Examples

Two structures with the same name are declared in the same process

Code triggering the error
Point_Coord is Structure
x,y are int
END
 
...
 
Point_Coord is Structure
x,y are int
END
Possible correction
Delete the second structure (useless declaration).
Point_Coord is Structure
x,y are int
END

Two structures with the same name but using different members are found in the same process

Code triggering the error
Point_Coord is Structure
x,y are int
END
 
...
 
Point_Coord is Structure
Coord_x,Coord_y are real
END
Possible correction
Delete the second declaration (that is useless).
Point_Coord is Structure
x,y are int
END
 
...
 
Image_Point_Coord is Structure
Coord_x,Coord_y are real
END
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help