4GL Procedure - checking for Vantage

Jeff,

Thanks very much, I will try that. Going home now though, it's 4.30pm over here and that's it for me today!


From: "Jeff Lewis" <jeff@...>
Subject: RE: Re: 4GL Procedure - checking for Vantage

You could test this -

&IF DEFINED(CUR-COMP) = 0 &THEN
DEFINE NEW SHARED VAR CUR-COMP AS CHARACTER FORMAT "x(8)" NO-UNDO
INITIAL "YourComp".
&ELSE
DEFINE SHARED VAR CUR-COMP AS CHARACTER FORMAT "x(8)" NO-UNDO.
&ENDIF

MESSAGE CUR-COMP.

You could also define an INPUT in a RUN command to state from where you
are starting.

Jeff Lewis
Dir of Engineering


++ Andy Watts

++ Ripley Engineering Ltd
++ Tel: 01256-473940
++ Fax: 01256-479991
++ mailto: andy@...
Hi all,

I'm really stuck on a little problem with a 4GL procedure I've written. I need to disable certain buttons when I run it depending on whether or not it was called from a Vantage session (as opposed to simply being connected to the Vantage database).

How on earth can I check for that condition? I know there will be specific shared variables such as CUR-COMP defined if it was called from Vantage, but I can't find a way to test for that condition without causing error messages whent he procedure is run 'self-standing'.

Any ideas? I would be very grateful!!

Thanks in hope,

++ Andy Watts

++ Ripley Engineering Ltd
++ Tel: 01256-473940
++ Fax: 01256-479991
++ mailto: andy@...
You could test this -

&IF DEFINED(CUR-COMP) = 0 &THEN
DEFINE NEW SHARED VAR CUR-COMP AS CHARACTER FORMAT "x(8)" NO-UNDO
INITIAL "YourComp".
&ELSE
DEFINE SHARED VAR CUR-COMP AS CHARACTER FORMAT "x(8)" NO-UNDO.
&ENDIF

MESSAGE CUR-COMP.

You could also define an INPUT in a RUN command to state from where you
are starting.

Jeff Lewis
Dir of Engineering

-----Original Message-----
From: Andy Watts [mailto:andy@...]
Sent: Thursday, May 22, 2003 5:44 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: 4GL Procedure - checking for Vantage



Hi all,

I'm really stuck on a little problem with a 4GL procedure I've
written. I need to disable certain buttons when I run it depending on
whether or not it was called from a Vantage session (as opposed to
simply being connected to the Vantage database).

How on earth can I check for that condition? I know there will
be specific shared variables such as CUR-COMP defined if it was called
from Vantage, but I can't find a way to test for that condition without
causing error messages whent he procedure is run 'self-standing'.

Any ideas? I would be very grateful!!

Thanks in hope,

++ Andy Watts

++ Ripley Engineering Ltd
++ Tel: 01256-473940
++ Fax: 01256-479991
++ mailto: andy@...



Yahoo! Groups Sponsor
ADVERTISEMENT
Click Here!
<http://rd.yahoo.com/M=244522.3313099.4604523.1261774/D=egroupweb/S=1705
007183:HM/A=1595054/R=0/*http://ashnin.com/clk/muryutaitakenattogyo?YH=3
313099&yhad=1595054>

<http://us.adserver.yahoo.com/l?M=244522.3313099.4604523.1261774/D=egrou
pmail/S=:HM/A=1595054/rand=827862709>

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 <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]