Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search
Message
From
12/10/2008 03:27:44
 
 
To
12/10/2008 03:03:53
Muthu Vel
Sty Company
India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Search
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01354384
Message ID:
01354385
Views:
22
>I have create a table Namely "student.dbf" with fields namely 1.ID 2. name 3. Class 4. Place. I want to search the student whose name letter begin with *A* or *B* or *C* or *D* etc and result will be display in browse window
>
>I had create a form and placed one Text box and one command button namely txtsearch and cmdsearch. for example I had entered letter "A" in txtsearch and click cmdsarch, I want to search the student whose name letter begin with *A* and result will be display in browse window
>
>
>
>How to write code?

In the commandbutton's click event:
lcText=alltrim(upper(this.parent.txtSearch.value))
Select * from student where upper(student) like lcText+'%'
Previous
Reply
Map
View

Click here to load this message in the networking platform