PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Reason
  • Correction
  • Example
  • Using the global method Destroy of the Drawing class
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 1018: The method is global: use the: operator: to access it
Reason
You are trying to access a global method of the class by using the syntax used to access a non-global method.
You are using the following syntax:

ClassName:MethodName
This syntax cannot be used to access a global method.
Correction
Use the proper syntax for accessing a global method of the class:

ClassName::MethodName
Example

Using the global method Destroy of the Drawing class

Code triggering the error
Drawing::Destroy()
Possible correction
Correct the syntax used:
Drawing::Destroy()
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment