DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

VBScript constant: vbUseSystem

VBScript constant: vbUseSystem

Provides, for the date functions like DateDiff, DatePart and Weekday, a constant for the first week of the year, specified in the regional settings of the operating system.

Object.vbUseSystem
ObjectVBS
The constant belongs to the VBS functionality. You do not need to specify this object.
Object.vbUseSystemVariant with read access
vbUseSystem has the value 0.

The following example displays the current calendar week:

Dim WeekOfYear
WeekOfYear = DatePart("ww", now, vbMonday, vbUseSystem)
MsgBox WeekOfYear
In This Section
Was this information helpful?