LOAD_WEEKENDS Procedure
Makes the value of the !Weekend_List system variable available to the date/time routines.
Usage
Parameters
None.
Keywords
None.
Discussion
Run this procedure after you:
-
Restore any PV-WAVE session in which you used the CREATE_WEEKENDS function. Running this procedure makes the restored !Weekend_List system variable available to the date/time routines.
-
Directly change the value of the !Weekend_List system variable, instead of using the CREATE_WEEKENDS procedure.
This procedure is called by the CREATE_WEEKENDS function. Thus, CREATE_WEEKENDS both creates weekends and makes them available to the date/time routines.
Note: If all weekdays have been defined as weekend days, an error results. |
Example
; Create the !Weekend_List system variable and define ; Saturday as a weekend. CREATE_WEEKENDS, 'sat' PRINT, !Weekend_List ; PV-WAVE prints: 0 0 0 0 0 0 1 ; Manually add Sunday to the weekend list. !Weekend_List = [1, 0, 0, 0, 0, 0, 1] ; Run LOAD_WEEKENDS so the new weekend value will take effect. LOAD_WEEKENDS