This ocx contain one function that returns string array.
If I use this ocx in Visual Basic project, it works fine.
When I try to use same ocx in ASP, and call function in JavaScript, the problem occur.
The javascript code is as bellow
RFS is object of ocx I have created
Expand|Select|Wrap|Line Numbers
- function testArray()
- {
- var allFiles = new Array();
- allFiles = RFS.GetFilesRFS("C:\\");
- alert(allFiles.length); //Error 'length' is null or not an object
- }