Re: J/Link
- To: mathgroup at smc.vnet.net
- Subject: [mg26702] Re: J/Link
- From: Ulrich Hofstoetter <ulrich.hofstoetter at visualanalysis.com>
- Date: Thu, 18 Jan 2001 00:57:10 -0500 (EST)
- Organization: Visual Analysis
- References: <943c20$cfg@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Edd klemens wrote:
>
> Dear Friends
> i want to send the contents of an array variable in VB
> to Mathematica by using something like the following
> single line:
> link.evaluateToOutputForm("Plus[" & ArrayVariable &
> "," & 2 & "]", 0)
Are you sure, you want to get the result in OutputForm?
I never used JLink from VB, but my shot in the dark:
OutputForm give you a string-representation of the list,
which can get quite large.
In the JLink UserGuide they suggest:
' You can get arrays back:
link.evaluate("Table[i, {i, 5}]")
link.waitForAnswer
arrayResult = link.getIntArray1()
Uli
--
Dipl.-Inf. Ulrich Hofstoetter
Visual Analysis GmbH
Neumarkter Str. 87
D - 81673 Munchen
Tel: (+49)89-431981-38
Fax: (+49)89-431981-1
e-mail: ulrich.hofstoetter at visualanalysis.com
www: http://www.visualanalysis.com