Re: Multiple User Forms Apps

From: Scott Kronheim <skronhei_at_my-deja.com>
Date: Fri, 04 Jun 1999 17:28:49 GMT
Message-ID: <7j92c4$iph$1_at_nnrp1.deja.com>


In article <6p843.3771$Vg.44628_at_nnrp2.clara.net>,   "qq" <nospam_at_yeah-right.com> wrote:
> I am currently wotking on an upgrade on one of several Forms
Applications at
> my company.
>
> The trouble we are having is when users switch between different Forms
> Applications.
>
> Each Application is started by a VB module that sets the Registry
settings
> for LOCAL and FORMS45_PATH
>
> Each application has to have a separate path for its fmxs etc. for
reasons I
> won't go into right now.
>
> The trouble is when users open more than one Application, the
FORMS45_PATH
> is set and when they toggle between them, the original App can't find
the
> fmx's.
>
> I realise I can set a When Window Activate trigger but with 100's of
Forms
> this is not really practical. I also realise I could set up separte
short
> cuts for each Application with a differnet 'Start In' directory but
this
> would mean 9 shorcuts and the users are bound to get confused.
>
> Any Ideas ???
>
> Thanks Guys
>
> Pete
>

You need to set some environment variables from VB before you open the forms. If you set an environment variable named FORMS45_PATH, Forms will use that value instead of the registry entry. Do the same thing for LOCAL and any other settings that differ between forms. If each instance of Forms has its own environment, you can run several forms concurrently, each using a different value for FORMS45_PATH and LOCAL. If you really wanted to, you could set environment variables for every registry entry required by Oracle and run without any Oracle registry stuff at all.

Hope that helps!
Scott

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Fri Jun 04 1999 - 19:28:49 CEST

Original text of this message