Module_name vs Application_name
From the help on module_name:
[COLOR=#000000][FONT="][quote]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).[/quote]
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.[/FONT][/COLOR]
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.
Re: Module_name vs Application_name
I've marked it as obsolete in the help.
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...
Re: Module_name vs Application_name
Dave,
There are two options:
[LIST][*]GetApplicationFileName ([url]https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cApplication-Function-GetApplicationFileName.htm[/url])[*]GetApplicationName ([url]https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cApplication-Function-GetApplicationName.htm[/url])[/LIST]
Re: Module_name vs Application_name
[QUOTE=Vincent Oorsprong;373364]Dave,
There are two options:
[LIST][*]GetApplicationFileName ([URL]https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cApplication-Function-GetApplicationFileName.htm[/URL])[*]GetApplicationName ([URL]https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cApplication-Function-GetApplicationName.htm[/URL])[/LIST]
[/QUOTE]
thanks, Vincent. Might finally close this...
Re: Module_name vs Application_name
now that I know about it..
:cool:
[code]
Get Module_name to sProgram
but
Get GetApplicationName of oApplication to sApplication
[/code]
for consistency it would be appropriate if getApplicationName didn't throw a status 98 without the 'of oApplication'
Re: Module_name vs Application_name
They are members of different classes, that's why this happens.
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.