Subj : baja
To   : PISTOLGRIP
From : Ace
Date : Thu Feb 14 2002 03:39 am

To: PistolGrip
Subject: baja

P>RE: baja
>BY: Ace to ALL on Wed Feb 13 2002 09:17 pm

P> > Is there an easy way to do this in baja?
> >
> > If xxxx.bin is running from logon/login, show/do this
> > If it is running from elsewhere (ie. a menu), do this instead


P>Sure, you use command line paramters when calling your module from each
>location.  Then you just need to do a simple check of them to see what code t
>execute.

P>You would execute the module something like:

P>exec "*MYMOD -option1 -option2"


P>Then, at the beginning of your module somewhere right before entry point just
>add a couple lines like this to grab the command line paramters before str ge
>over written.  (the command line parameters are automatically put into "str"
>when you execute a BAJA modules).

P>#########
>copy cmdline str
>strupr cmdline
>#########

P>From there is simple checks on the cmdline variable to control where your
>program goes.

Woo!  That should work great, thanks!

Why strupr?  Personal preferance?

---
� QMPro 1.53 � telnet://dsbbs.net  -  http://www.dsbbs.net
� Synchronet � Data Stream - telnet://dsbbs.net - www.dsbbs.net