Hi Milind,
thanks for getting interested in my problem. I have been trying to isolate the problem, since the code runs in custom clases in a framework. After an hour of testing and debugging I have isolated it and have been able to create repro code. The code that I include breaks on two machines time after time (generates C5 errors). I run the code, and select an autoComp value with the mouse (when the list comes up), clicking or double-clicking on it.
The keys are:
1. It does not break if the textBox is not linked to the field in the table, i.e. if the controlSource property is left blank.
2. It does not break if the form is set to "Default DataSession" instead of "Private DataSession"
local loTestForm as Form
loTestForm = newObject("frmTestAutoComp")
loTestForm.show()
read events
return
define Class frmTestAutoComp as Form
Width = 200
Height = 200
DataSession = 2
Visible = .T.
add Object text1 as textBox
text1.AutoComplete = 1
text1.AutoCompSource = "testAutoComp"
procedure Init
Create Table testAutoComp (testField C(15))
thisForm.text1.ControlSource = "testAutoComp.testField"
Append Blank
endProc
endDefine
It would be nice if you could point the problem and give some workaround.
TIA,
Javier.
>Hi Javier,
>Can you try to outline the steps you took? This will help us in reproducing and diagnosing the problem.
>
>Thanks.