PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Reason
  • Correction
  • Example
  • Declaring a class method
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 202: The method already has an access attribute (public, protected or private)
Reason
You are using a class method. Several access levels have been assigned to this method. A method can only have a single access level.
Reminder: a method can have one of the 3 following access levels:
  • Private: access allowed inside the code of the class.
  • Protected: access allowed inside the code of the class and derived classes.
  • Public: unrestricted access (default access mode).
Correction
Modify your code in order to have a single access level.
Example

Declaring a class method

Code triggering the error
PROTECTED PUBLIC METHOD CalculateStockMarket(Share)
Possible correction
Specify a single access level for this method.
PUBLIC METHOD CalculateStockMarket(Share)
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment