Codes for "Find" and for "Tip of the day"

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2005
Posts: 1
Reputation: kuteesa is an unknown quantity at this point 
Solved Threads: 0
kuteesa kuteesa is offline Offline
Newbie Poster

Codes for "Find" and for "Tip of the day"

 
0
  #1
Feb 10th, 2005
I write trying to get help from you, I am trying to learn VB6 and I have been working on this project it is running but there are some commands which are not working like - Find I wrote the codes but when I enter the word and click OK I get the message box but I would like the word to be highlighted, so that I could see it.

For the tip of the day Do I have to write the codes? I have written those of Next and Previous but I do not know what I have to do next. I want the computer to select the words randomly, where do I have to put the data for those random words, do I have to use a different Table or I can instruct the computer to pick words form the Table I have for contents, "that is where the main Data is".

Thak you

Sarah
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: rhenerlau is an unknown quantity at this point 
Solved Threads: 0
rhenerlau rhenerlau is offline Offline
Newbie Poster

Re: Codes for "Find" and for "Tip of the day"

 
0
  #2
Apr 22nd, 2005
Check out the InStr() function for your "Find" request - do a search in the Help file to get the exact syntax. THere is also a built-in Replace() Function.

Hope this helps!

Richard
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Codes for "Find" and for "Tip of the day"

 
0
  #3
Apr 23rd, 2005
Also, For "Random" Tips of the day, the way to go about it is to read in all the tips from the database or file into an array, then run the randomize function between the lowest and highest element of the array. Then display the tip that is inside that element of the array. I would personally just use an increment counter. Save it in a settings file or the registry, and just add 1. So like, if you have 10 tips, start at 1, then next time, show 2, then 3, then 4. That's how I would do it, but it's not very random
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC