Current Company Name

Lonnie,

Thank you for your mail, I have try this in vantage command window and it
worked.

But how to invoke/execute this code When user go to Vantage menu
"Option" -> "Change Company", then change company from
Company A to Company B?

Could you advise me?

Christine

> I tried this from the Vantage menu and it worked.....
>
> DEFINE SHARED VAR cur-comp AS CHAR NO-UNDO.
> message cur-comp view-as alert-box.
>
> I have no idea how to determine the current company of a Vantage
> client from outside Vantage.
>
>
>
> --- In vantage@yahoogroups.com, "cwong_thinktech" <cwong@t...> wrote:
> >
> > Dear All,
> >
> > Does anyone have any ideas about how to get current company name?
> >
> > Our customer ask us to develop some external programs which
> should be > integrated with Vantage 6.0. As you know, vantage
> supports multi- companies > so that user can switch from company A
> to company B. > However, we met a technical problem that is how to
> get current company name > When user go to Vantage menu "Option" -
> > "Change Company", then change > company from Company A to
> Company B. How can the external program
> (e.g. > visual basic ) know that user has change company to
> "Company B"? > > For your information: > - Vantage maintains
> current company name in a gobal variable _COMPANYNAME > - We can
> get the current company name by type the below command in Command
> > Window of vantage or in VBasic Form: EXECSHELL msgbox {_COMPANYNAME}
> > or EXECSHELL prgABC.exe {_COMPANYNAME}
> > - However, it is not possible to ask user to run a VB Form when
> he change > company from company A to B. > > Can anyone advise
> me? > > Chrisitne > > -- > Webmail
>
>
>
> Yahoo! Groups Sponsor
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You
> must have already linked your email address to a yahoo id to enable
> access. )
> (1) To access the Files Section of our Yahoo!Group for Report
> Builder and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
>
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/links
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.


--
Webmail
Dear All,

Does anyone have any ideas about how to get current company name?

Our customer ask us to develop some external programs which should be
integrated with Vantage 6.0. As you know, vantage supports multi-companies
so that user can switch from company A to company B.
However, we met a technical problem that is how to get current company name
When user go to Vantage menu "Option" -> "Change Company", then change
company from Company A to Company B. How can the external program (e.g.
visual basic ) know that user has change company to "Company B"?

For your information:
- Vantage maintains current company name in a gobal variable _COMPANYNAME
- We can get the current company name by type the below command in Command
Window of vantage or in VBasic Form: EXECSHELL msgbox {_COMPANYNAME}
or EXECSHELL prgABC.exe {_COMPANYNAME}
- However, it is not possible to ask user to run a VB Form when he change
company from company A to B.

Can anyone advise me?

Chrisitne

--
Webmail
How are you launching your app? From a Vantage Menu item?


-----Original Message-----
From: cwong_thinktech [mailto:cwong@...]
Sent: Sunday, November 30, 2003 10:30 PM
To: VantageGroup
Subject: [Vantage] Current Company Name



Dear All,

Does anyone have any ideas about how to get current company name?

Our customer ask us to develop some external programs which should be
integrated with Vantage 6.0. As you know, vantage supports multi-companies
so that user can switch from company A to company B.
However, we met a technical problem that is how to get current company name
When user go to Vantage menu "Option" -> "Change Company", then change
company from Company A to Company B. How can the external program (e.g.
visual basic ) know that user has change company to "Company B"?

For your information:
- Vantage maintains current company name in a gobal variable _COMPANYNAME
- We can get the current company name by type the below command in Command
Window of vantage or in VBasic Form: EXECSHELL msgbox {_COMPANYNAME}
or EXECSHELL prgABC.exe {_COMPANYNAME}
- However, it is not possible to ask user to run a VB Form when he change
company from company A to B.

Can anyone advise me?

Chrisitne

--
Webmail



Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I tried this from the Vantage menu and it worked.....

DEFINE SHARED VAR cur-comp AS CHAR NO-UNDO.
message cur-comp view-as alert-box.

I have no idea how to determine the current company of a Vantage
client from outside Vantage.



--- In vantage@yahoogroups.com, "cwong_thinktech" <cwong@t...> wrote:
>
> Dear All,
>
> Does anyone have any ideas about how to get current company name?
>
> Our customer ask us to develop some external programs which should
be
> integrated with Vantage 6.0. As you know, vantage supports multi-
companies
> so that user can switch from company A to company B.
> However, we met a technical problem that is how to get current
company name
> When user go to Vantage menu "Option" -> "Change Company", then
change
> company from Company A to Company B. How can the external program
(e.g.
> visual basic ) know that user has change company to "Company B"?
>
> For your information:
> - Vantage maintains current company name in a gobal variable
_COMPANYNAME
> - We can get the current company name by type the below command in
Command
> Window of vantage or in VBasic Form: EXECSHELL msgbox {_COMPANYNAME}
> or EXECSHELL prgABC.exe {_COMPANYNAME}
> - However, it is not possible to ask user to run a VB Form when he
change
> company from company A to B.
>
> Can anyone advise me?
>
> Chrisitne
>
> --
> Webmail