Hello,
I have already asked this question on
MapInfo-L group, but I didn't get right answer.
Basically, I'm trying to pass array of strings to MBX Sub from C# assembly.
C# part of code:
string[] subParams = { "param1", "param2"}
mbxApp.CallMapBasicSubroutine("MySub", subParams);
MabBasic sub:
Declare Sub MySub(subParams() as String)
Sub MySub(subParams() as String)
Print "Sub launched"
End Sub
Interestingly, nothing happens when I run this code, you'll notice I haven't used any array member in Sub, just tried to print out message. No exception is caught both on C# and MB side.
Until now I have been passing single string (concatenated array members, delimited by semicolon), and then I would split them in Sub, however it would be nice to do it right way.
------------------------------
Marijan
------------------------------