Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass an array to an external app

Status
Not open for further replies.

jcairo

Technical User
Jul 23, 2007
10
PT
I would like to pass an array to photoshop from my vfp app.
The adobe vbscript documentation for the TextItem object says:

Position - Array of Number(Double) - Read-write. The position of origin for the text. The array must contain two values (unit value).

I suppose the vbScript would be something like
oPSApp.ActiveDocument.ArtLayers(1).TextItem.Position = new Array[1,1]

I can't figure out how to this from the vfp help or faqs, since oPSApp....= myArray would not work.
Any tips would be gratefully appreciated.
 
If it works at all, you need @myArray. Also see COMARRAY() in the help.

Bye, Olaf.
 
You can try this workaround:

dimension myArray[...]
...

oPSApp.ActiveDocument.ArtLayers(1).TextItem.Position = ;
getArrayRef('myArray')

procedure getArrayRef(tcArrayName)
return @&tcArrayName



Cetin Basoz
MS Foxpro MVP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top