PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment