Microsoft KB Archive/50786

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:25, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q50786 to Microsoft KB Archive/50786 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WordBASIC Time$() Function Defined

PSS ID Number: Q50786 Article last modified on 02-17-1993

1.00 1.10 1.10a 2.00 WINDOWS

Summary: The WordBasic Time$() function returns the current time in the default format for Microsoft Word for Windows.

Syntax

A$ = Time$() You can change the default format by inserting the TIMEFORMAT=time-picture setting in the WIN.INI file. TIMEFORMAT sets the default time format for Word documents. Refer to the “Date/Time-Picture Switch” under “Fields” in the “Microsoft Word for Windows User’s Reference” for the various format possibilities.

Example

A$ = Time$()
Print "The time is: " + A$

For more information on WordBasic functions, refer to the “Microsoft Word for Windows Technical Reference.”

Additional reference words: 1.0 1.00 w4wmacro