Development mode flag (OpenInsight 32-Bit)
At 11 MAR 2004 12:38:54PM Richard Hunt wrote:
When starting OI with arguments, there is one "/dv" that I am interested in.
Is there a way to determine that a user is in development mode or runtime mode? Kinda along the lines of determining if a control is enabled or disabled?
ENABLED=GET_PROPERTY(CONTROL,'ENABLED')
I want to hide the the engine based on the mode (development / runtime). And I want to use the same code for both modes.
At 11 MAR 2004 01:26PM Sean FitzSimons wrote:
Richard,
Check the serial number. Use SERIAL() if position 1 is a W then you have Dev, if an X then you have a Runtime.
Sean
At 11 MAR 2004 01:36PM Donald Bakke wrote:
Richard,
Assuming you are using runtime engines with your runtime deployed applications then Sean's advice is good. Also, you should also realize that as of 4.1.x OENGINE automatically hides now with runtimes so you won't need to do anything special in these situations.
dbakke@srpcs.com
=== At 11 MAR 2004 04:46PM The Sprezzatura Group wrote: ===
Richard,
If you want to see what the OI command line was you can use the GetCommandLine() windows API function declared in DLL_KERNEL32 as
LPSTR STDCALL GetCommandLineA( VOID ) as GetCommandLine
(If you're on OI 4.1x then you want to use LPCHAR instead of LPSTR)
declare function GetCommandLinecmdLine=GetCommandLine()World leaders in all things RevSoft
At 11 MAR 2004 09:00PM Richard Hunt wrote:
Doh!!!
I knew that… I just have a hard time remembering that. Thanks!!!