Two questions: 1. What is 'I' set to, I read the function three times and I only see it = in the function call and not declared. 2. Why is it necessary to set the object to null before returning the stri= ng? Shouldn't the object just get cleared? Thanks, Jon Jonathan Cohn Application Developer Sprint -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@freelists= .org] On Behalf Of Jamal Mazrui Sent: Thursday, May 22, 2008 6:11 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Getting text in an edit field Below is a function that may help (from the Homer Script Library). It assumes that MSAA constants have been included, e.g., via msaa.jsh Jamal String Function EditGetText(Handle h) ;Get text from an edit control via its window handle ' Seems like a max of 4K is returned Var Dim o, oNull, String sReturn Let o =3D GetObjectFromEvent(h, msaa_OBJID_CLIENT, 1, i) Let sReturn =3D o.AccValue Let o=3D oNull Return sReturn EndFunction __________? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts