ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Code triggering the error
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 1054: 'Ancestor' cannot be used outside the code of a class
Reason
You are trying to access a member or a method of the base class of a derived class by using the 'Ancestor' keyword. This keyword can only be used in the code of a derived class.
Correction
To explicitly use a method or a member of the base class from a code external to the class, specify the name of the ancestor class to use.
Example

Code triggering the error

// -- Button click code
Ancestor::pLast


Possible correction
Specify the name of the class.
// -- Button click code
Drawing::pLast
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help