[jawsscripts] Re: Getting text in an edit field
- From: "Cohn, Jonathan C [IT]" <Jonathan.C.Cohn@xxxxxxxxxx>
- To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
- Date: Thu, 22 May 2008 18:34:34 -0500
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
- Follow-Ups:
- [jawsscripts] Re: Getting text in an edit field
- From: Jamal Mazrui
- References:
- [jawsscripts] Getting text in an edit field
- From: jaws tech
- [jawsscripts] Re: Getting text in an edit field
- From: Jamal Mazrui
Other related posts:
- » [jawsscripts] Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- » [jawsscripts] Re: Getting text in an edit field
- [jawsscripts] Re: Getting text in an edit field
- From: Jamal Mazrui
- [jawsscripts] Getting text in an edit field
- From: jaws tech
- [jawsscripts] Re: Getting text in an edit field
- From: Jamal Mazrui