Answered
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);
Further, for security reasons the Acrobat environment is heavily sandboxed. There is no direct access to the local file system. If there were, then scripts in a PDF could be used to distribute malicious software. There are a great number of things that cannot be done from a document script for exactly this same reason.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script