Solved

Text Manipulation

Posted on 1999-01-19
8
158 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 103
Access 2003, my txt file export is running backwards 4 46
Paint/Redraw window while dragging 16 68
Added a column screws up code 5 50
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

16 Experts available now in Live!

Get 1:1 Help Now