Solved

Text Manipulation

Posted on 1999-01-19
8
159 Views
Last Modified: 2010-05-03
A cloze test is: given a text with some words blanked out,
fill in the blanks.For any given text and number N, I want
to implement a fill-in-the-blanks test, where every Nth  
word is a blank.  The user would then type in a word he  
thinks may be the answer (for each and every blank), and  
the program will tell him whether he is right or not, and
may even provide hints such as the first letter if he
inputs the wrong word more than once.
How do I create this in VB?

0
Comment
Question by:rockettt
  • 4
  • 4
8 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1469416
Set up a form with a multiline text box and a text box control array. Load the text box with the phrase that you're going to use, replace every Nth word with "_"'s to show where the word goes. As each word is located, create another text box in the array. Save your words in an array. After the form is complete, let the operator select each box. Put code in the text(index)_Change event and watch for <Enter>. Index value points to your word array as well as to which box operator is in.

For 50 points, that's all you're going to get from me! (grin)

0
 

Author Comment

by:rockettt
ID: 1469417
I'm only a beginner in VB 6.0 Profesional edition(!!), so i need more information...thanks though.

0
 
LVL 12

Expert Comment

by:mark2150
ID: 1469418
For 50 points you're not going to get runnable code! (grin)

What didn't you understand?

M

0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:rockettt
ID: 1469419
how do i get more points, and how many do you want for runnable code?
:P
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 50 total points
ID: 1469420
What is this, a school assignment? The above instructions are enough to get you started in the right direction. You start roughing out the above and you'll have a good start. *THEN* if you have difficulty I'm willing to help. *BUT* if you want *ME* to do all the work, well my rate on my web page is $50/hr. (Not meaning to sound snotty, but that's how it is.)

M

0
 

Author Comment

by:rockettt
ID: 1469421
Sorry.  It's a final year thesis, so i'm getting a  bit panicky!
never mind, thanks for the help, i'll give it a go.
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1469422
I thought it smelled like a homework assignment! (grin)

Seriously, take a swipe at it and *then* give us a shout.

Visit my web page: www.cyberchute.com/rvbus/madmark
be sure to sign the guestbook.

Write me direct at: mark_lambert@ntsc.navy.mil

M



0
 

Author Comment

by:rockettt
ID: 1469423
Thanks Mark.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question