Well done Jeet. Thank you. Now can you clarify what you would like the script to do when the GetWord () function encounters the following strings: "0" "000" "0001" "00:00" "00:11" "00/00/00" "00/11/22" "12345" "abcde" "012345" "0abcde" Then we will be able to modify the script accordingly. Regards, Martin ----- Original Message ----- From: "Jitendra" <jeet.invincible@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Wednesday, July 22, 2009 4:27 PM Subject: [jawsscripts] Re: detecting numbers > Hello martin, I am sorry for the second time as it did not compile, > there were errors indeed, > it should compile now, I removed all the Greater signs, spaces and > useless statements. > Script JawsDelete () > Var > String sTemp > Let Stemp = getWord () > If StringContains (Stemp, ".123456789") then > SayFormattedMessage (ot_error,"NothingSelected") > Else > TypeCurrentScriptKey () > SayString ("Deleted") > Return > EndIf > PerformScript JawsDelete() > EndScript > You wrote: > Hi Jeet, > > Thanks for your reply. I am still puzzled that the revised code you sent > has five compile errors. You have indeed corrected one of the original > six > errors, but I cannot believe that you can compile this particular code. I > suspect that, if you have code running, then you have sent us an edited > version. I say this because two of the remaining errors are caused by a > missing if () then statement, and one by the fact that more than one > variable declaration is expected. > > Please try to compile the code as you sent it in your last email, and > tell > me what the compiler reports. We need to start from the same point if we > are to have a meaningful discussion. > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.23/2254 - Release Date: 07/22/09 05:59:00 __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts