Is there any possibility to read a data in one text box and to put it some place.
Hai to all,
In our developed software, we will insert some data's in textboxes at a particular position. Then the software itself generate a reference value. It is alphanumeric.
In another textbox, i have to insert the same above generated value. Is it possible to do it.
Please anyone reply me as quickly as possible. It is very ******.
Re: Is there any possibility to read a data in one text box and to put it some place.
You can use API like so to get the editbox text :
Function GetEditText(strRecog As String, strText As Variant) As Variant
Dim hCtl As Long
Dim strLocRec As String
strLocRec = "Type=EditBox;" & strRecog
hCtl = GetProperty(strLocRec, "hWnd")
SendMessage GetParent(hCtl), WM_NEXTDLGCTL, hCtl, TRUE
SendMessage hCtl, WM_GETTEXT, 25, strLocRec
strText = strLocRec
varRet = GetProperty(strLocRec, "Text")