KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q46790: Curtime Function Pulls In Time Editor Was Invoked

Article: Q46790
Product(s): See article
Version(s): 1.00 | 1.00
Operating System(s): OS/2 | MS-DOS
Keyword(s): ENDUSER | buglist1.00 fixlist1.02 | mspl13_basic
Last Modified: 28-JUL-1989

The Microsoft Editor Version 1.00 does not implement the Curtime
function correctly. The manual states that the current time will be
inserted at the cursor when this function is invoked. Actually, the
time the editor was invoked is inserted at the cursor. To get around
this problem, simply initialize the editor before calling the Curtime
function.

Microsoft has confirmed this to be a problem in Version 1.00. This
problem was corrected in Version 1.02 of the Microsoft Editor.

The following macro illustrates how the Curtime function is invoked.
This macro should be placed in the TOOLS.INI file under the [m] tag.

   time:=Curtime
   time:ALT+T

When editing a file, pressing ALT+T inserts the time that the editor
was loaded at the cursor. To obtain the current system time, either
invoke the Initialize function by pressing SHIFT+F8 before ALT+T, or
change the macro as follows:

   time:=Initialize Curtime
   time:ALT+T

Now, pressing ALT+T inserts the current system time at the cursor.

This function is documented on Pages 30 and 96 of the "Microsoft
Editor User's Guide," which is contained in the "CodeView and
Utilities, Microsoft Editor, Mixed-Language Programming Guide" manual
from the Microsoft C Optimizing Compiler Version 5.10.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.