Results 1 to 9 of 9

Thread: Module_name vs Application_name

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Cayman Islands
    Posts
    3,969

    Default Module_name vs Application_name

    From the help on module_name:

    The DataFlex help system relies on two global properties, application_name and module_name to assist in the process of locating context-sensitive help information. The Module_Name defaults to the name of the program (stored in the .EXE file).
    Application_name doesn't appear to be defined, nor is it in the help, though there are references to ApplicationName in the Web Classes.

    This relates to my question about duplicate programs being reported when multiple sessions on RDP are running the same menu. It doesn't make sense to me that RDP sessions wouldn't be siloed from each other, and in fact it appears they sometimes are.

    My options at the point appear to be:

    1. don't check dupes if it's an RDP user (ugh)
    2. waste another weekend on flaky windows - why does it work just sometimes?
    3. Upgrade all my point to point fiber so that RDP isn't needed.
    I should be on a beach ...

  2. #2
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Module_name vs Application_name

    Dave,

    Good catch. This is a left over from Character Mode. There is no DataFlex Help System anymore. It was never ported from Character Mode to Windows and certainly not to web.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  3. #3
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    8,849

    Default Re: Module_name vs Application_name

    I've marked it as obsolete in the help.

  4. #4
    Join Date
    Feb 2009
    Location
    Cayman Islands
    Posts
    3,969

    Default Re: Module_name vs Application_name

    so, given that it is gone. How can I reliably detect the ACTUAL name of the exe that is running, from within that program? Module_name just tells me what it was compiled as...
    I should be on a beach ...

  5. #5
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Module_name vs Application_name

    Dave,

    There are two options:
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  6. #6
    Join Date
    Feb 2009
    Location
    Cayman Islands
    Posts
    3,969

    Default Re: Module_name vs Application_name

    Quote Originally Posted by Vincent Oorsprong View Post
    Dave,

    There are two options:

    thanks, Vincent. Might finally close this...
    I should be on a beach ...

  7. #7
    Join Date
    Feb 2009
    Location
    Cayman Islands
    Posts
    3,969

    Default Re: Module_name vs Application_name

    now that I know about it..


    Code:
        Get Module_name to sProgram
    
    but
        Get GetApplicationName of oApplication to sApplication
    for consistency it would be appropriate if getApplicationName didn't throw a status 98 without the 'of oApplication'
    I should be on a beach ...

  8. #8
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    8,849

    Default Re: Module_name vs Application_name

    They are members of different classes, that's why this happens.

  9. #9
    Join Date
    Feb 2009
    Location
    Cayman Islands
    Posts
    3,969

    Default Re: Module_name vs Application_name

    I didn't notice that. It would seem obvious that the module_name, being the name of the compiled program, would be a property of the Application. I should NOT be making assumptions at my age...

    Asked and answered anyway, thanks, and it will be part of my precompile going forward.
    I should be on a beach ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •