Fitness.com
Advertisement

Go Back   Sports Forum > Community > The Pub

The Pub

Grab a beer, sit back and relax.


» Site Navigation
 > Shop
» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 103,490
Threads: 85,004
Posts: 1,031,271
Top Poster: Karky (9,545)
Welcome to our newest member, ankkaycrat
» Fitness Shop
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-06-2007, 10:43 PM   Very simple Visual Basic problem. Post #11
Registered User
 
Join Date: Feb 2007
Posts: 0
Rep Power: 0
retired_Frappin' is an unknown quantity at this point
Default

Surely if you insert a "loop until no matches" equivalent then that works the same way as you consistently reloading it.
retired_Frappin' is offline   Reply With Quote
Old 11-06-2007, 10:49 PM   Very simple Visual Basic problem. Post #12
Newb
 
Join Date: Sep 2007
Posts: 0
Rep Power: 0
retired_gulkis is an unknown quantity at this point
Default

when the form first loads, load all the csv files into arrays.

put everything in these arrays into the list box in the format you see fit.

when a text box is changed:

1. clear the list box
2. cycle through the relevent array of strings
3. use the InStr function to see if the text in the text box is inside the current string in the array
4. if it is then add this item to the list box using the same formatting you used before

isn't that all you're trying to do?
retired_gulkis is offline   Reply With Quote
Old 11-06-2007, 10:52 PM   Very simple Visual Basic problem. Post #13
Joe Blow
 
Join Date: Oct 2007
Posts: 4
Rep Power: 0
2boxers is an unknown quantity at this point
Default

Quote:
Originally posted by sean_oc16:
This is the second year of your course, right? Strange you haven't met VB yet, I remember doing it in AS ICT and that isn't based on the programming side of computers either.
not really, seems to be quite common practice
2boxers is offline   Reply With Quote
Old 11-06-2007, 11:06 PM   Very simple Visual Basic problem. Post #14
Joe Blow
 
Join Date: Oct 2007
Posts: 0
Rep Power: 0
retired_sue edwards is an unknown quantity at this point
Default

In the form declaration, make some globals:

Private mvar_zFore() As String
Private mvar_zSur() As String
Private mvar_zYear() As String

In the Form_Load sub, read the file, redim the globals, and store the values. Then for each Text box change (and at the end of the Form_Load) clear the list and compare the contents of each text box to the corresponding variable. If you get a matches in all three, add the item to the list.

<pre class="ip-ubbcode-code-pre">For i = 1 To ubound(mvar_zFore) If InStr(1, mvar_zFore(i), Text1.Text) &gt; 0 Then If InStr(1, mvar_zSur(i), Text2.Text) &gt; 0 Then If InStr(1, mvar_zYear(i), Text3.Text) &gt; 0 Then List1.AddItem mvar_zFore(i) & " " & mvar_zSur(i) & ", " & mvar_zYear(i) End If End If End IfNext i</pre>
retired_sue edwards is offline   Reply With Quote
Reply

Go Back   Sports Forum > Community > The Pub

Bookmarks

Thread Tools
Display Modes


Similar threads to Very simple Visual Basic problem.
Thread Thread Starter Forum Replies Last Post
Back to basic - a collective view of basic tips
Back to basic - a collective view of basic tips: MATCH HINTS AND TIPS Feel free to add...
bRAzIL Tactics & Training Tips 4 09-11-2007 09:08 AM
The basic problem
The basic problem: In real life if you are a manager you know what...
DS Tactics & Training Tips 2 06-24-2007 12:24 PM
Basic and Simple please
Basic and Simple please: Hi, apologises if this post is posted in wrong...
ryanadam Tactics & Training Tips 6 06-23-2007 03:13 AM
Simple Problem
Simple Problem: Hii have a problem it seems really, really simple...
aajsmh1 General Photoshop Board 5 06-29-2006 10:19 PM
Newbie looking for basic simple guidance
Newbie looking for basic simple guidance: I am photoshop illiterate...just so you know...
tisatashar General Photoshop Board 5 03-04-2005 10:40 PM

More threads of Jonno-Blood
Thread Date Forum Replies Last Post
Winamp Problem
Winamp Problem: Afternoon. My Media Library on Winamp has...
09-17-2007 The Pub 2 09-17-2007 05:39 PM
stadium building
stadium building: You personally cannot do much to effect the...
06-05-2006 Football Manager 3 06-16-2006 08:47 PM
Captain, Kick Takers and Playmakers (Containing Idea for FMH07)
Captain, Kick Takers and Playmakers (Containing Idea for FMH07): I've just been playing the game a bit (not had...
06-09-2006 Football Manager 0 06-09-2006 09:15 PM
my own music on the game!!
my own music on the game!!: If you had a quick search around you'd find the...
06-05-2006 Football Manager 0 06-05-2006 10:50 AM
Need HELPPP
Need HELPPP: You'll probably find you're losing out big time...
04-22-2006 Football Manager 0 04-22-2006 12:13 AM

Other threads in forum The Pub
Thread Date Thread Starter Replies Last Post
Best place to get good quality CD-R's
Best place to get good quality CD-R's: I need some new blank CD's, was looking at UKDVDR...
12-02-2007 Walrus 5 12-02-2007 01:49 PM
Premiership Coach - A game for Aussie Rules fans out there
Premiership Coach - A game for Aussie Rules fans out there: Premiership Coach I thought at least a few...
11-22-2007 waspy01 3 11-23-2007 11:11 AM
Andover
Andover: Hi all, In a couple of weeks I start a new...
09-11-2007 Chris Bagnall 31 09-14-2007 11:24 PM
How cool is it when you go for an interview and they offer you the job on the spot?
How cool is it when you go for an interview and they offer you the job on the spot?: Quality imo
09-05-2007 Gimp_Basket_Smiles 53 09-07-2007 02:24 AM
Typing in Foreign Languages
Typing in Foreign Languages: I want to type in Japanese and Korean, and have...
08-27-2005 Madeline 1 08-28-2005 08:15 PM

» Online Users: 32
2 members and 30 guests
ankkaycrat, smillee56
Most users ever online was 2,128, 07-21-2008 at 08:27 PM.

All times are GMT +1. The time now is 09:40 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing Very simple Visual Basic problem. - Page 2.