|
-
Jan 13th, 2006, 03:34 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] RobDogs Spellcheck with array ?
Guys & RobDog !
I am using RD's .net spell checker and it is working sweet as a nut. But I was wondering if it would be possible to make a slight adjustment.
My problem at the moment is that I have around 15 different screens that need to use this, each screen could have upto 5 textboxes that need to be checked.
So, I have the SpellCheck code in a dll, and reference it each time I need to perform the check using something along the lines of.....
VB Code:
Public Sub Spell()
Try
'Get New instance of PWBSpell.dll
Dim Spell As PWBspell.clsSpellMe = New PWBspell.clsSpellMe
'Perform SpellCheck
tb_NTCComments.Text = Spell.SpellMe(tb_NTCComments.Text)
tb_NTCSubject.Text = Spell.SpellMe(tb_NTCSubject.Text)
Catch ex As Exception
EH.Log(ex)
End Try
End Sub
Where tb_.... are the textboxes to check.
Because the number of items to check on each screen varies, I am running the SpellMe function multiple times (Twice in this eg). Would it not be possible to send a string array to the function, SpellMe could run through each item in the array, then return a new array containing the corrected values ? Or is what I am doing now the best method.
Thanks in advance, and thanks again to RobDog for another fantastic bit of code.
Bob
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|