AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to VBBS/VADV Script Discussion  <--  <--- Return to Home Page
   Networked Database  VBBS/VADV Script Discussion   [111 / 233] RSS
 From   To   Subject   Date/Time 
Message   Computer Whiz    Bigjoe   Command Line   March 17, 2006
 7:02 AM  

Re: Command Line

> I still need a way of passing vars on a command line. Does any one have any
> ideas.
> myscript s1 s2 s3 on so on,
> Is this possable.

Command line as in the DOS command prompt?  If so, then that is not possible.

If you mean from a FB or another script...  well that is not possible either,
but you can set some varidibles before linking to the script...

Taking "myscript" is your script name (i.e. myscript.v) and s1, s2, and s3
are your parameters you want to pass.  First you would SET your parameters,
then LINK or CALL the script.

Example:
let s1 = "Parameter1"
let s2 = "Parameter2"
let s3 = "Parameter3"
call "myscript"

Example2:
let s1 = "/BLAH"
let s2 = ""
let s3 = ""
call "myscript"

Example2 would be an instance you might call the same script, but you only
wanted to pass one parameter instead of 3, so what you end up having to do is
setting your first parameter and clearing your other parameters so that old
parameters don't get passed to the script again (giving undesired results,
maybe even throw you for a loop)

A better example would be to use a set range of the array, such as $250 to
$255, allowing you 6 parameters max, create you go-subroutine, something like
clearparam:, to reset all the parameters...such as:

clearparam:
  do i, 250, 255
  let $i = ""
  loop
  return

You would then of course, in your calling script, before each call to the
script using parameters, enter:

gosub clearparam
let $250 = "/param1"
let $251 = "/param2"
call "myscript"


If you want to do it from a function block, you can't - you just have to write
an extra script that will pass the parameter and have the function block call
that script, using the given examples above.

ComputerWhiz

�Ŀ� ������Ŀ  �Ŀ�Ŀ VA �Ŀ�Ŀ�Ŀ  telnet://bbs.chris-co.org       24h/7d
�  �Ĵ��ٳ�Ŀ�ĺ  � �    �Ĵ�Ĵ�Ŀ  Usurper v0.20d     Sysop: ComputerWhiz
���� �� ����  ������2.10���������  VirtualMUD v0.00�  @1205037 VirtualNET
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to VBBS/VADV Script Discussion  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0164 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108