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ã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 127:50:38 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |