次の方法で共有


SET FWEEK Command

Specifies the requirements for the first week of the year.

SET FWEEK TO [nExpression]

Parameters

  • nExpression
    Specifies a value, which determines the requirements for the first week of the year. The following table lists the values nExpression can assume and the corresponding requirements for the first week of the year:

    nExpression First week requirement
    1 (Default) The first week contains January 1st.
    2 The larger half (four days) of the first week is in the current year.
    3 The first week has seven days.

    If you omit nExpression, the first week of the year is reset to 1 (the first week contains January 1st).

Remarks

The first week of the year can also be set with the First Week of Year list box in the Regional tab of the Options dialog.

Example

STORE SET('FWEEK') TO gnFweek  && Save current value
SET FWEEK TO 1  && First week contains January 1st
SET FWEEK TO 3  && First week has seven days
SET FWEEK TO &gnFweek  && Restore original setting

See Also

CDOW( ) | DAY( ) | DOW( ) | SET FDOW | SYS( ) Functions Overview | WEEK( )