Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 132,242 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,121 people online right now. Registration is fast and FREE... Join Now!




MSHFlexGrid

 
Reply to this topicStart new topic

MSHFlexGrid, Searching a record.

selvakumarkrishnasamy
post 26 Feb, 2008 - 09:52 PM
Post #1


New D.I.C Head

*
Joined: 26 Feb, 2008
Posts: 15

Can any help how to search a record from MSHFlexGrid in vb6.0? On thping a character in a text box should display all the records in MSHFlexGrid that starts with the character typed in the text box. Thanks in Advance.
User is offlineProfile CardPM

Go to the top of the page

Nayana
post 26 Feb, 2008 - 10:14 PM
Post #2


DIC Hawk - 나야나 नयन:

Group Icon
Joined: 14 Nov, 2007
Posts: 824



Thanked 5 times

Dream Kudos: 175
My Contributions


All the text in a flex grid is stored in the TextMatrix(row, col) property.

So you need two For loops, one iterating through cols, and the other interating through rows.

You can use the Instr function to see if a cell contains your text.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 09:53PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month