Share via


New Method Dialog Box

Makes it possible for you to create a custom method and specify attributes for that method.

This dialog box appears when you choose New Method on the Form menu that appears when the Form Designer is open or the Class menu that appears when the Class Designer is open.

  • Name
    Specifies the name of the new method.

  • Visibility (Class Designer only)
    Specifies the level of visibility for the method:

    • Public   Access is available from anywhere in an application.

    • Protected   Restricts access to the method to class members and subclasses can access protected properties. Object instances cannot access protected methods.

    • Hidden   Restricts access to the method to class members only. Object instances and subclasses cannot access hidden methods.

    For more information, see Protecting and Hiding Class Members.

  • Description
    Contains the method description to be displayed at the bottom of the Properties Window in the Class Designer and, if the property is not protected, in the Form Designer.

See Also

Tasks

How to: Add Properties and Methods to a Form

How to: Add Methods to Classes

Concepts

Class Designer

Reference

Form Designer

New Property Dialog Box

Edit Property/Method Dialog Box

Other Resources

Dialog Boxes (Visual FoxPro)