Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done _LIBRARYFUNCTION internal variable for Library files

Aug
2,799
144
In .btm files,
I use the _batchname internal variable in usage instructions.

For example;
Code:
iff %# eq 0 then
  echo USAGE: %_batchname test.csx
  quit
endiff

I cannot do this in a Library function.

At present,
I am hard-coding the library function name;

For example,
in a library function called csx;
Code:
set _libraryfunction=csx

iff %# eq 0 then
  echo USAGE: %_libraryfunction test.csx
  quit
endiff

I would like to suggest an internal variable be created for use in library functions,
which returns the name of the function from which it is being called.

Joe
 
Dang, Vince, why do I keep forgetting that?

Yes, it does indeed work, thankyou!

I have become so used to using _batchname instead of %0.

Joe
 
Back
Top