David,
Is the Com Server VFP based?, in which case it may be better to pass on
object with properties as opposed to an array.

If not then have you tried passing 1 or 11 as opposed to 100 as the comarray
parameter depending upon you needing by value or reference.

Dave Crozier

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Boatright
Sent: 01 July 2008 15:07
To: [email protected]
Subject: Passing arrays to Automation Servers

I have been trying to pass an array and I keep getting a message that the
parameter is incorrect.  Here is the code.


myInDesign = CreateObject("InDesign.Application.CS2")

myDocument = myInDesign.Documents.Add

myPage = myDocument.Pages.Item(1)

myTextFrame = myDocument.TextFrames.Add

DIMENSION MYARRAY(4)

MYARRAY(1) = "0p0"

MYARRAY(2) = "0p0"

MYARRAY(3) = "18p0"

MYARRAY(4) = "18p0"

=COMARRAY(myInDesign,100)

myTextFrame.GeometricBounds(@myArray)

myTextFrame.Contents = "Hello World!"


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to