Passing Arrays

edited 12:25PM in FastScript
Hi,

I want to pass an Array from the script to my TMyAServerImpl.cpp file.
I have made an OLE method with the Type Library in BCB 6, with a parameter type VARIANT *. Is this the right approach? How is FS passing arrays to OLE?
And how do I read the array data in TMyAServerImpl.cpp, se below.

---- Script Code
imglab = CreateOleObject("MyAutoSrv.MyLabAServer")
MyArray = [10,20,30]
imglab.MyMethod(MyArray)
TMyAServerImpl.cpp
STDMETHODIMP TMyLabAServerImpl::MyMethod(VARIANT* myConvArray)
{
// How do I read the array data??
}
Best Regards,
Christer

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.