Expand my Community achievements bar.

fso = new ActiveXObject("Scripting.FileSystemObject"); doesn't work

Avatar

Level 1
Level 1

Dear all

I'm using LiveCycle Designer 8.0, purpose to add all subfolder names of a specific folder to a drop-down list, but failed to create a FileSystemObject, my code as below, the message "Testing" never pop-up, i.e. code stopped at previous line.  Thx!

CL

----- form.Page1.#subform[1]::initialize: - (JavaScript, client) -----------------------------------
var fso;

fso = new ActiveXObject("Scripting.FileSystemObject");

xfa.host.messageBox("Testing", "Debugging", 3);

2 Replies

Avatar

Level 10

I believe there is no ActiveXObject method in Acrobat JavaScript.

Avatar

Level 1
Level 1

If it's the case, anyone know how to retreive list of subfolder names of a specific folder?  how's the code should be?  Thx!