[jawsscripts] Re: Function for verifying the contents of a variable.

  • From: "Bob J." <rjustice004@xxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 2 Feb 2012 19:55:06 -0500

This logic seems to assume that one or the other test will always be true.

If that assumption can actually be safe then the second test is not necessary 
so the ELIF can be replaced with a simple ELSE!


----- Original Message ----- 
From: "Saylien Brown" <saybro@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, February 02, 2012 11:30 AM
Subject: [jawsscripts] Re: Function for verifying the contents of a variable.


Well I'm using the following work around for now:

If(StringContainsChars (GetWord (), "0123456789")) Then
Do the following...
ElIf(StringContainsChars (GetWord (), "aeiou")) Then
Do the following...
EndIf

Sure there must be an easier way, but this works for now.

At 10:56 AM 2/2/2012, you wrote:
>Saylien, it depends on how u initially defined the variable. If u
>defined it as a string, then it's a string. If u defined it as a
>handle or integer, then it's an integer.
>
>Now--if u mean whether or not the text contained in a string is a
>number, u can use StringToInt or StringContainsChars.
>
>On 2/2/12, Saylien Brown <saybro@xxxxxxxxx> wrote:
> > Hello,
> >
> > I'm using the latest build of JAWS 13 under Windows 7.
> >
> > Does anyone know if there is a JAWS function for confirming if the
> > value stored in a variable is a number or text string? Sure there is,
> > but looking through the list of over 250 functions to find it has my
> > head spinning.
> >
> > Thanks for any help.
> >
> > __________�
> >
> > View the list's information and change your settings at
> > //www.freelists.org/list/jawsscripts
> >
> >
>
>
>--
>Blame the computer--why not? It can't defend itself & occasionally
>might even be the culprit
>Jackie McBride
>Ask Me Computer Questions at: www.pcinquirer.com
>Jaws Scripting training materials: www.screenreaderscripting.com
>homePage: www.abletec.serverheaven.net
>__________�
>
>View the list's information and change your settings at
>//www.freelists.org/list/jawsscripts

__________�

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

__________�

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

Other related posts: