You can not pass parameters to the Main procedure. The MapBasic
RemoteMsgHandler can handle DDE input fra a calling app with a
commandinfo(cmd_info_msg).
But the calling app is not mapbasic window. If your in a mb app there
must be another way of getting data from MapInfo than DDE through the
MapBasic window. Especially when the data is coordinates

HTH,
Jakob


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brendan
Tagg
Sent: Tuesday, June 13, 2006 4:37 AM
To: mapinfo-l@lists.directionsmag.com
Subject: [MI-L] Mapbasic - Passing paramaters to Main


Does anyone know how to pass (of if its possible to) pass paramaters
into /out of a mapbasic program so that it can be called from the
mapbasic window (or a workspace).

For example an app might be

declare function product(x as float ,y float) as float function
product(x as float ,y float) as float
        product = x * y
exit function
end function


Thanks in advance
Brendan Tagg
Melbourne, Australia


This email and any attachments may contain privileged and confidential
information and are intended for the named addressee only. If you have
received this e-mail in error, please notify the sender and delete this
e-mail immediately. Any confidentiality, privilege or copyright is not
waived or lost because this e-mail has been sent to you in error. It is
your responsibility to check this e-mail and any attachments for
viruses.  No warranty is made that this material is free from computer
virus or any other defect or error.  Any loss/damage incurred by using
this material is not the sender's responsibility.  The sender's entire
liability will be limited to resupplying the material.

_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l




_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to