Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autocomplete, mouse, and error
Message
From
07/10/2005 10:38:41
 
 
To
06/10/2005 22:02:23
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01055395
Message ID:
01057183
Views:
16
Hi Javier,

I submitted this on your behalf. Note that the AutoCompSource table is created in the home(7) folder, so the AutoCompSource and control source tables are different tables, but have the same name. It crashes also with the default AutoCompSource table as well, so the problem is unrelated to the table naming.

>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.
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Previous
Reply
Map
View

Click here to load this message in the networking platform