SET SYSFORMATS Command

Specifies whether Visual FoxPro for Windows system settings are updated with the current Microsoft Windows system settings.

SET SYSFORMATS ON | OFF

Parameters

  • ON
    Specifies that the Visual FoxPro system settings are updated when the Windows system settings are changed. SET SYSFORMAT ON is identical to choosing the Use System Settings check box on the International tab of the Options dialog. Note that issuing SET SYSFORMAT ON changes the SET DATE setting to SHORT.

    The settings are used for the duration of the current data session, or, if issued during the default data session, for the duration of the Visual FoxPro session.

  • OFF
    (Default) Specifies that the Visual FoxPro system settings are not updated when the Windows system settings are changed. The Visual FoxPro default settings are not restored.

Remarks

The Windows system settings are specified in International option of the Windows Control Panel.

When SET SYSFORMATS is ON, the following SET commands can be used to override the current system settings. However, changing the Windows system settings when SET SYSFORMATS is ON overrides these SET commands:

  • SET CENTURY
  • SET CURRENCY
  • SET DATE
  • SET DECIMALS
  • SET HOURS
  • SET MARK TO
  • SET POINT
  • SET SEPARATOR

When Visual FoxPro is started, the Visual FoxPro system settings are the default settings of these SET commands. To use the Windows system settings when Visual FoxPro is started, place the following line in your Visual FoxPro Config.fpw configuration file:

SYSFORMATS = ON

SET SYSFORMATS is scoped to the current data session.

See Also

SET CENTURY | SET CURRENCY | SET DATASESSION | SET DATE | SET DECIMALS | SET HOURS | SET MARK TO | SET POINT | SET SEPARATOR