ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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)
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help