Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create simple autocomplete form
Message
From
19/12/2013 14:06:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Create simple autocomplete form
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01590652
Message ID:
01590652
Views:
82
Can anyone please give me hand in the right direction. I am going to start fresh on this since my old autocomplete programming is not working very well.
So I will do this properly using a form - first of all can I get to work (see below)?.

I am using mydbf.dbf and am trying to get autocomplete of field name Vname.
on selection do something.

Appreciate it if you could fill in the great many blanks to get this going. I can flesh it out once the mechanism is working.
many many thanks if you can get this going it's becoming a thorn in my side.
k
Public oForm
oForm = Createobject('AutoCompleter')
oForm.Show 

Define Class AutoCompleter As Form   
Add Object Sname As TextBox With top=10, Left=10,;
AutoComplete = 1,;
AutoCompTable = 'mydbf',;
AutoCompSOurce = 'Vname'
Enddefine
Next
Reply
Map
View

Click here to load this message in the networking platform