[jawsscripts] testing 2 strings for equality

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

Hello friends, the following function has a bug, is there any other way 
doing it?
I have 2 strings, and want to compare them, for example: the string a 
is: "2.00", and string b is: 20.0", so what I want is that the function 
should return false in that case, and if both strings have same 
characters, and in the same place as string a has, then true.
Void Function stringMatch (string StringA, string StringB)
if (StringLength(StringA) == StringLength(StringB)) && 
StringContains(StringA,StringB) then
return true
else
return false
EndIf
EndFunction
Thank you, Jitendra.
__________ 
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: