facespan and reference usage/errors
facespan and reference usage/errors
- Subject: facespan and reference usage/errors
- From: Erik Norton <email@hidden>
- Date: Sat, 11 Aug 2001 21:25:47 -0700 (PDT)
using OS 9.1 AS 1.6 FaceSpan 3.5.2 carbonLib 1.3.1
unable to create/manage a reference within a called
handler. i can do the following within the run handler
of a window or application script within FaceSpan ...
on run
set aLIST to {"a","b","c","d"}
set aREF to a ref to aLIST
set anITEM to aREF's item 1
activate
display dialog anITEM
end run
but if i set this within a called handler, it fails
...
on run
aHANDLER()
end run
on aHANDLER
set aLIST to {"a","b","c","d"}
set aREF as a ref to aLIST
set anITEM to aREF's item 1
activate
display dialog anITEM
end aHANDLER
if i wrap the lines in a "try ... on error ... end
try" it idetifies it as an error -1700 (can't make
data into type).
obviously missing something. any ideas welcome.
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/