Tom
Mon Nov 13 08:18:00 CST 2006
First script can only provide variant type variables (a VB/VBScript
term - I don't know the equivalent in C#).
Second, the array is single dimensioned, where every element is an
array. Therefore, I believe the C# definition would need to be single
dimensioned as well.
I don't know C#, but I expect the solution will involve defining a
single dimensioned array of type variant (or C# equivalent) and then
translating it into whatever form you really want to work with. In
JScript this would be done as ...
var arrName()
As I said, I don't know C#, so I can't give you that syntax.
Tom Lavedas
=============
http://members.cox.net/tglbatch/wsh
EDWARD FRENCH wrote:
> The array is defined in vbscript like this:
> doc.Selection.Select Array( Array( 50, 60 ), Array( 150, 60 ), Array( 150,
> 120 ), Array( 50, 120 ) ),...,...,...
>
> Defining in C#
> double[] [] varName fails as it requires a single dimension array
> double[,] varName also fails
>
> The program doc refers to is Photoshop CS2.