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)
- Specifies the name of the property to reset to the Visual FoxPro default setting.
- Specifies the name of the event to reset. All user-defined code in the event is deleted.
- Specifies the name of the method to reset. All user-defined code in the method is deleted.
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 | ReportListener Object | _SCREEN | Shape | Session Object | Spinner | TextBox | Timer | ToolBar
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.