David,
Why not use:
SET VAR vRBVersion = (CVAL('VERSION'))
as part of the caption - then you won't get caught when it changes! You
could also "SGET" the relevant part.
Regards,
Alastair.
----- Original Message -----
From: "David M. Blocker" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Thursday, February 24, 2005 3:46 PM
Subject: [RBG7-L] - RE: Changing the RBASE caption
> I love this thread - what a great question John and Javier and great tips,
> Razzak.
>
> Here's my version which I think gives John what he wanted: Rbase,
database,
> directory:
>
> SET VAR vMyCurrentDir TEXT = NULL
> SET VAR vMyDB TEXT = NULL
> SET VAR vRCaption TEXT = NULL
> SET VAR vMyCurrentDir = (CVAL('CURRDIR'))
> SET VAR vMyDB = (CVAL('DATABASE'))
> SET VAR vRCaption = ('R:BASE 7.1; Database:' & .vMyDB+'; Directory:' +
> & .vMyCurrentDir)
> SET CAPTION .vRCaption
> RETURN
>
> David Blocker
> [EMAIL PROTECTED]
> 781-784-1919
> Fax: 781-784-1860
> Cell: 339-206-0261
> ----- Original Message -----
> From: "John Docherty" <[EMAIL PROTECTED]>
> To: "RBG7-L Mailing List" <[email protected]>
> Sent: Wednesday, February 23, 2005 9:14 PM
> Subject: [RBG7-L] - RE: Changing the RBASE caption
>
>
> > Sorry Razzak I should have read your earlier reply more closely - thanks
> > very much.
> >
> > Regards,
> >
> > John Docherty
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of A. Razzak
> > Memon
> > Sent: Thursday, 24 February 2005 3:05 p.m.
> > To: RBG7-L Mailing List
> > Subject: [RBG7-L] - RE: Changing the RBASE caption
> >
> >
> > At 09:01 PM 2/23/2005, John Docherty wrote:
> >
> > >Thanks for that, but I really want to change the top caption that
appears
> > >when you start up RBASE - the one with the RBASE Icon, followed by
RBASE
> > 7.1
> > >[Connected: databasename] - [R>Prompt] (or whatever tool is being
used).
> >
> >
> > John,
> >
> > Look at the syntax of my earlier reply under the same subject line:
> >
> > ====
> > Try this:
> >
> > SET VAR vMyCurrentDir TEXT = NULL
> > SET VAR vMyCurrentDir = (CVAL('CURRDIR'))
> > SET CAPTION .vMyCurrentDir
> > RETURN
> >
> > That should give you exactly what you are looking for.
> >
> > And that is your tip of the day!
> >
> > Very Best R:egards,
> >
> > Razzak.
> > ====
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.306 / Virus Database: 266.4.0 - Release Date: 22/02/2005
> >
> >
> >
>