Solved

Text Manipulation

Posted on 1999-01-19
8
156 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
 

Author Comment

by:rockettt
ID: 1469419
how do i get more points, and how many do you want for runnable code?
:P
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now