home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Programmer'…arterly (Limited Edition)
/
Visual_Basic_Programmers_Journal_VB-CD_Quarterly_Limited_Edition_1995.iso
/
sharewar
/
midat5
/
readme.txt
< prev
next >
Wrap
Text File
|
1995-01-07
|
3KB
|
60 lines
Mitromar Date/Time Custom Control
Version 5.00
(dated demo version)
This control was the result of being forced to use the Format(Now) statement in
Visual Basic. Format(Now) is the slowest function in VB. There were so many
parameter options for obtaining a date or time value. If you use the Format(Now)
statement to timestamp records, or have a need for date or time values, this control
will greatly simplify your programming. All properties are always current and
available by using the property.
This custom control allows a programmer in the Visual Programming environment to
obtain current date and time properties without using functions or formatting
statements, or to use the custom control as a Timer.
The programmer can obtain a date or time value using a property.
There are 18 custom properties for date and time values, three custom options properties,
one status property and two events.
Custom Properties Description
AmPm String containing "AM" or "PM"
Date String containing the current date in the MM/DD/YY format
DayofMonth The numeric day of the month (1 to 31)
DayofYear The numeric day of the year (1 to 366)
DisplayFormat The Format for FormattedTime Property. (choose from 13)
FirstWeek When to start the first week of the year. (first Sunday
or Jan 1)
FormattedTime The current date and/or time as specified in DisplayFormat
property.
Hour24 The numeric hour of the day. (0 to 23)
HourTwelve The numeric hour of the day. (1 to 12)
Interval The timer interval in milliseconds. (o to deactivate the timer)
LastStatus The result of the last action by the control.
Minute The numeric minute after the hour. (0 to 59)
Month The numeric month of the year. (1 to 12)
MonthAbbr The abbreviation for the month of the year. (Jan, Feb., etc)
MonthName The complete name of the month of the year. (January, etc)
Seconds The numeric seconds after the minute. (0 to 59)
Separator The date separator character. (Slash, Dash, Period, or Bar)
Time The current time in HH:MM:SS format.
TimeZone The timezone as specified in the TZ environment variable. (PDT
as default if not set)
WeekDay The numeric day of the week. (Sunday is 1)
WeekDayAbbr The abbreviation of the day of the week. (Sun, Mon, etc)
WeekDayName The complete name of the day of the week. (Sunday, etc)
WeekofYear The numeric week of the year as started in FirstWeek property.
(0 to 53. 0 and 53 are possible due to starting day and length
of year)
Year The complete numeric year. (1995, 1996, etc)
Custom Events Description
Change Indicates the FormattedTime property has changed.
Timer The Interval has expired.
Custom Methods Description
Refresh Causes all properties to be updated in addition to the control
being refreshed.