[jawsscripts] Re: Another String question

stringLeft returns the leftmost character of a string.  stringContains
returns the position of one string within another, or 0 if not found.
Putting these together, and assuming s is your string,

stringContains("0123456789", stringLeft(s, 1))

will return 0 if s is not a digit and something above 0 if it is a
digit.

You can use similar tests to check if the first character is a letter
(make sure to check for both upper and lower case letters though).

On Sun, Nov 25, 2007 at 01:52:11AM -0500, GianniP46 wrote:

   OK,

   I am doing better with strings, but one more question.  If I have a
   string of text stored in a variable, is there a way to check if the
   first character is a letter verses a number?  I want to have a if else
   based on these conditions.  Thanks!





   Gian Carlo Pedulla
   [1]GianniP46@xxxxxxxxxxxxx



   LETS! GO! METS!

References

   1. mailto:GianniP46@xxxxxxxxxxxxx

-- 
Doug Lee, Access Technology Programmer
SSB BART Group
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________ 
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: