2 Replies Latest reply on Feb 15, 2008 12:11 PM by David Wigforss-Hv1BNN

    UI Creation / Populating Variables...

    David Wigforss-Hv1BNN Level 2
      I've now moved onto UI creation... What I would like to do is create edittext boxes, which would populate my variables.. I'm having a problem on my first attempt..

      // Add a panel to contain the components
      win.pnlA = win.add("panel", [10, 10, 400, 450], "Settings");

      win.pnlA.displayTextLbl = win.pnlA.add("statictext", [10, 415, 100, 430], "XML Name:");
      XMLName = win.pnlA.add("edittext", [100, 415, 225, 430], 'XMLTest5');

      var logFile = new File("/c/TEMP/" + XMLName + ".xml");

      Most of the rest of the script creates lots more static and edit texts with other panels... My problem is, I'm not sure how to get the result of the edittext (in my example, XMLTest5) to appear in the variable/filename. My filename is unwantingly written as [object EditText].xml

      Thanks again for your help.