PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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
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 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 version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment