Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autocomplete, mouse, and error
Message
From
06/10/2005 22:02:23
 
 
To
05/10/2005 22:06:50
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:
01057037
Views:
34
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform