|
|||
|
Hello,
I am interested in using SWFkit to develop an interface for a sales dashboard tool. Part of the tool will include search functionality. I have been testing a COM component, developed in Delphi and VB, which passes back some of the search information via "out parameters." An example of code is below: Code:
var objDoc = new ActiveXObject("AXmlSrchC.Srch32");
var indexName = "C:\\crindex";
objDoc.Open(indexName);
// recNum is the number of search results found:
var recNum = objDoc.Search("search string");
var recName, recdate;
for (var i=0; i<recNum; i++) {
// out parameters are recName and recDate:
objDoc.GetRecNameTimeByNum(i, recName, recDate)
FlashPlayer.bindData("results");
// recName value is undefined:
FlashPlayer.results += recName;
FlashPlayer.updateData(false); * * *
}
Thank you for your help. --Ben |
|
|||
|
Sorry, SWFKit doesn't support capturing out parameters(It can only do it in an event handler).
You should modify the method to GetRecNameByNum or GetRecTimeByNum, and change the type to [out, ret]. Or you must write another object to encapsulates its methods. |
|
|||
|
Thanks for the reply. The search component is a third-party component, not something I wrote myself, so I don't know how successful I'll be in getting the developer to change the return types. I guess an option would be to write an intermediary component which returns the values of the out parameters as "retvals" which the Ffish script will be able to capture.
Still, your product looks great! --Ben |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|