[jawsscripts] Re: testing 2 strings for equallity

  • From: Jitendra <jeet.invincible@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 12 Aug 2009 22:12:19 +0530

Hello, in this call, it says "success", and it shouldn't, as a period 
sign is missing in the second. see the intire code below, it may however 
be possible that I miscalled the function.
Thank you.
Script Test()

If stringMatch ("100.", "100") then
SayString ("success")
Else
SayString ("Error")
EndIf
endScript
Void Function stringMatch (string StringA, string StringB)
if StringA == StringB Then
 return true
 else
 return false
 EndIf
EndFunction

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: