Hi Jitendra, I have re-posted the function I sent before, for those who haven't been following the thread, & follow it with test results & further comments. Int Function ValueIsAllZeroes (string Value) RETURN (NOT StringContainsChars (Value, "987654321")) && StringContains (Value, "0") EndFunction and the test script Script TestOnF6 () var string Temp let temp = GetWord () if (ValueIsAllZeroes (Temp)) then ; do error option SayString ("error") ; for testing only else ; do delete option SayString ("delete") ; for testing only endif EndScript Below are the results using the sample strings listed: * Note:I believe Martins function would produce the same results. If these are not the results you want, please change the result for each sample to show what you want. "0" say error option "000" say error option "0001" do delete option "00:00" say error option "00:11" do delete option "00/00/00" say error option "00/11/22" do delete option "12345" do delete option "abcde" do delete option "012345" do delete option "0abcde" say error option "0.00" say error option "0.12" do delete option ",.$%^&*()" do delete option ",.$%^&*()0" say error option Regards, Paul from Aust ----- Original Message ----- From: "Jitendra" <jeet.invincible@xxxxxxxxx> You wrote: Ok, Jitendra, are u saying that if the data consist of a time or date stamp or all 0's that pressing the delete key should produce an error, otherwise delete the data? Do I have that correct? Yes, true, it is correct the way you written above. You wrote: What happens when the delete key is pressed without scripts? Are u trying to prevent him from deleting certain types of data--is that the object here? yes, when without delete script, key is pressed, it deletes whatever, without saying anything just the next character, but I want to say an error when it is nothing than zeros. __________ 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