Subj : Internal codes in Baja
To   : Tegularius
From : Digital Man
Date : Fri Jul 03 2009 02:37 am

 Re: Internal codes in Baja
 By: Tegularius to All on Thu Jul 02 2009 07:33 pm

> I would like to write a command to select a file area by means of a
> mnemonic code (instead of by number after scrolling through perhaps several
> pages of listings, as the default provides).
>
> The FILE_SET_AREA function works fine as long as the user knows the
> complete internal code of a file area and types it in.  However, this
> ordinarily consists of the internal code of the library + that of the area
> within the library.  I don't want to require the user to type anything but
> the code of the area, without the library prefix.

You can choose what you your internal codes to be. If don't want the library
code prefix, just set it to blank in SCFG.

> So how can I get a hold of either the internal code (preferably) or at
> least the short name of the currently selected library in a Baja program?

I can't think of a way in Baja off-hand. My suggestion would be to use
JavaScript instead where it is most certainly possible.

> "@LIB@" displays the library's short name but I haven't seen a way to do
> anything with @-codes except display them.

Yup. And that's only the *current* library's short name, not all of your
library short names.

                                           digital man

Snapple "Real Fact" #85:
The Mona Lisa has no eyebrows.

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net