Link to home
Start Free TrialLog in
Avatar of soft_ware
soft_ware

asked on

How to Write a Program to Type Over a TextBox?

I have been asked to write a program to type over a textbox .......To explain:
1>USER 1 Keys  in some data into the textbox,data gets stored into a database.
2>Since the data is Mission Critical I am required to:
  Display the previously entered data into textbox by
  User 1 as a shadow.  User 2 should be able to type over this and if there is a mismatch between User'1 n's data and User'2s data then a MsgBox should be displayed.  
Is this Possible?
(I have been told that this is the DeFacto Industry standard for Mission Critical DataEntry(Called as Shadow DataEntry or Double-Entry)is there any other method Pls.
Suggest)
Avatar of JonFish85
JonFish85

You mean something like this?

If User1Text <> User2Text Then
  MsgBox "User1's text is not the same as User2's!"
End If

Please let me know if I am on the right track...
soft_ware:

I assume by 'shadow', that User 1's text in not visible to User 2.  That would only make sense.

So, when the User 1 data is stored in the db, it is also stored in a string variable, say sUser1Entry and is cleared from the textbox.  When User 2 makes his entry, he might click on a 'Confirm' button or just press Enter.  At this time, his entry is sored in a string variable sUser2Entry and cleared from the textbox.  Now the comparison between sUser1Entry and sUser2Entry is made as suggested by JonFish above.

Jim  
ASKER CERTIFIED SOLUTION
Avatar of rspahitz
rspahitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you may want to take the approach of having the previous user's entry appear in another color (red let's say) when the textbox pops up.  then as user2 types in the box, each character "typed over" turns a different color - say green - while the remaining characters are still red.  During this process or at the end, do your validation scheme.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to rspahitz
Please leave any comments here within the
next seven days.
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange