PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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

// -- Click code of the button
Ancestor::pLast


Possible correction
Specify the name of the class.
// -- Click code of the button
Drawing::pLast
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment