try error oddity
try error oddity
- Subject: try error oddity
- From: John Delacour <email@hidden>
- Date: Sat, 26 Jul 2003 22:36:06 +0100
- Mac-eudora-version: 6.0a28
Can someone explain why I get these results? I would not expect a and
b to be undefined if there is no error but on;y redefined if there
is. Is that an illogical expectation?
set {a, b} to words of "OK OK"
try
1 + 1
on error a
end try
try
1 + 1
on error b
end try
{a, b}
--> The variable a is not defined.
set {a, b} to words of "OK OK"
try
try
1 + 1
on error a
end try
try
1 + 1
on error b
end try
end try
--> 2
_______________________________________________
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.