"+" and "-" are numbers.
"+" and "-" are numbers.
- Subject: "+" and "-" are numbers.
- From: Paul Skinner <email@hidden>
- Date: Fri, 2 Aug 2002 10:54:41 -0400
set testList to {"-", "+"}
repeat with thischar in testList
try
thischar as number
display dialog thischar & " is a number"
on error
display dialog thischar & " is not a number"
end try
end repeat
-->"- is a number"
-->"+ is a number"
"+" as number
-->0
"-" as number
-->0
Why?
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.