Darrin,

I take it the complex piece of code is not in mapBasic? If it is you can call any subroutine with paramters by using the ByVal reference. Sub YourSubProcedure(ByVal input1 as String, input2 As String)

I have run mapbasic programs from the command line from VB by writing an ini file first, and then just calling the mbx from the command line (this will allow other machines to run the mbx if needed). The first thing the Mapbasic program does is read the ini file for its data.

You can use the windows API's to read and write the ini files.

No doubt we will be able to do this with xml docs once the tools are in, but for now there are more tools to read and write ini files.

r


On Mon, 18 Apr 2005 09:12:37 -0400, Darrin Clement <[EMAIL PROTECTED]> wrote:


 Hello,

We have a complex piece of code that generates a button pad. When the user
then selects a button, it calls the appropriate subroutine procedure which
then prompts for a few input parameters.


Is there a way to call such a subroutine (procedure), while passing the
input parameters, from the command line? Maybe using switches or something?
For example:


Run testprogram.mbx /subroutine1(input1,input2)

I'm not really asking about the passing of parameters but more the act of
calling a subroutine from a command line.  Any help?

Thank you!

Darrin



..........

www.maponics.com
C 2005. Note: The information contained in this message is privileged and
confidential and may be protected from disclosure and forwarding. If the
reader of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to the
sender named above and deleting this message from your computer. Thank you.




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16125





-- ________________________________________________

Robert Crossley

Agtrix P/L
9 Short St
PO Box 63
New Brighton 2483
Far Southern Queensland
AUSTRALIA

153.549004 E 28.517344 S

P: 02 6680 1309
F: 02 6680 5214
M: 0419 718 642
E: [EMAIL PROTECTED]
W: www.agtrix.com
W: www.wotzhere.com
skype: robertcrossley

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16136



Reply via email to