display date has changed when hitting a Hot Key

Home Forums Multi-Edit Support display date has changed when hitting a Hot Key

This topic contains 1 reply, has 815 voices, and was last updated by  deleyd 9 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2637

    phoenixsystems
    Participant

    Hello everyone;

    I am new to this software and taking over the maintanence from a person who has left our company, so bare with me. We have the server version of MultiEdit. When I am in a document, I can hit the F11 key and the date stamp would be place on the right side of my code in the comment area ( 72-100). In December, it was mmddyy. Now it is mmddccyy. Where does MultiEdit get the date stamp, from the server or workstation. :?:

    #8780

    deleyd
    Participant

    (I’ll have to track this down further, but here’s what I’ve found so far:)
    The code is in file MeSys.s macro DateTime:
    [code:3mukjr1u] str Time_Str[ 10 ] = Str_Del( Time, 6, 3 );
    str STime[ 2 ];

    GetLocaleInfoA( LOCALE_USER_DEFAULT, LOCALE_STIME, sTime, 2 );
    if ( XPos( STime, Time_Str, 1 ) == 2 ) {
    Time_Str = Str_Del( Time, 5, 3 );
    }[/code:3mukjr1u]

    Time string function
    RETURNS: A string containing the current time according to the system clock. The USA format is: hh:mm:ss am (or pm)

    GetLocaleInfoA is the ANSI (not-Unicode) version of Microsoft’s GetLocaleInfo documented at:

    http://msdn.microsoft.com/en-us/library … 85%29.aspx

    LOCALE_USER_DEFAULT – The default locale for the user or process.
    LOCALE_STIME – Character(s) for the time separator.

    …so all this GetLocaleInfo stuff is just to get the time separator character. It appears the details of the Multi-Edit internal time function is what I need to find out more about.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.