Condividi tramite


SET FDOW Command

Specifies the first day of the week.

SET FDOW TO [nExpression]

Parameters

  • nExpression
    Specifies the first day of the week. The following table lists the values nExpression can assume and the corresponding first day of the week.

    Nexpression

    Day of the week

    1

    Sunday

    2

    Monday

    3

    Tuesday

    4

    Wednesday

    5

    Thursday

    6

    Friday

    7

    Saturday

    If you omit nExpression, the first day of the week is reset to Sunday (1).

Remarks

The first day of the week can also be set with the Week Starts On list box in the Regional tab of the Options dialog.

Example

STORE SET('FDOW') TO gnFdow  && Save current value
SET FDOW TO 1  && Sets first day of the week to Sunday, the default
SET FDOW TO 7  && Sets first day of the week to Saturday
SET FDOW TO &gnFdow  && Restore original day

See Also

Reference

CDOW( ) Function

DAY( ) Function

DOW( ) Function

SET FWEEK Command

SYS( ) Functions Overview

WEEK( ) Function

SET Command Overview

Other Resources

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)