Hi,

I am connecting to an ActiveX DLL using CF. All the examples with the software are 
written in ASP and work. However, the fact it works seems to depend on the fact ASP 
can declare a variable without defining the datatype. Can I replicate this in CF?

The ActiveX method expects 2 variants to which it can pass an array. If it helps, the 
ASP code is:

Dim sLanguage
Dim iPromptSet
Dim aiWidths
Dim asExamples
Dim asPrompts
iPromptSet = 1

asPrompts = ProWeb.GetPrompts(sDataID, sLanguage, iPromptSet, aiWidths, asExamples)

--

Can I declare a typeless variable in ColdFusion? I have tried the following:

pcobj = createObject("COM", "blah.blah");

a1 = ArrayNew(1);
a2 = ArrayNew(1);

pcobj.GetPrompts("xxx","",2,a1,a2);

However, this returns the error:

"Unable to resolve this varaible using provided runtime information. Error building an 
argument list for: GETPROMPTS"


If I pass empty strings it errors on incompatible data types. If I create another 
reference to the array, I get the error above.

Any ideas greatly appreciated!

Andy Hall.

Reply via email to