ResetToDefault Method

Applies To   See Also

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

Syntax

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

Settings

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.