Share via


WriteMethod Method

Writes the specified text to the specified method. Available at design time only.

Control.WriteMethod(MethodName, MethodText [,lCreateMethod])

Parameters

  • MethodName
    Specifies the name of the method to write the specified text to.
  • MethodText
    Specifies the text to write to the specified methods.
  • lCreateMethod
    Specifies whether the method is created when it doesn't already exist. Because this method is useful only at design time, you must save the form or class before changes can be effective.

Remarks

lCreateMethod is available only in this version of Visual FoxPro or later.

See Also

ReadExpression Method | ReadMethod Method | WriteExpression Method

Applies To: CheckBox | Column | ComboBox | CommandButton | CommandGroup | Custom | EditBox | Form | FormSet | Grid | Header | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | Page | PageFrame | Shape | Spinner | TextBox | Timer | ToolBar