Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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

SRP Computer Solutions, Inc.


=== 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 GetCommandLine
 cmdLine=GetCommandLine()

The Sprezzatura Group

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!!!

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/fb4120f274e7230485256e540060f23d.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1