Partager via


ResetToDefault Method

Restores a property, event, or method to its Visual FoxPro default setting. Available at run time and design time.

 [Form.]Object.ResetToDefault(cPropertyName | cEventName | cMethodName)

Property Values

  • cPropertyName
    Specifies the name of the property to reset to the Visual FoxPro default setting.
  • cEventName
    Specifies the name of the event to reset. All user-defined code in the event is deleted.
  • cMethodName
    Specifies the name of the method to reset. All user-defined code in the method is deleted.

Remarks

ResetToDefault returns a property to the setting it had when first created. For example, if you have changed the font of a command button, calling this method for the caption resets the font to its default (Arial).

ResetToDefault removes all user-defined code from an event or method at design time.

ResetToDefault has no effect on member arrays, since there is no default value in a class.

ResetToDefault does not apply to Access/Assign methods since these are tied more closely to their associated property and therefore are treated differently than normal methods.

See Also

GETPEM( ) Function

Applies To: CheckBox | Collection Class | Column | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | Cursor | CursorAdapter Class | Custom | DataEnvironment | EditBox | Exception Class | Form | FormSet | Grid | Header | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | Page | PageFrame | ProjectHook Object | Relation | _SCREEN | Shape | Session Object | Spinner | TextBox | Timer | ToolBar