PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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