• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
facespan and reference usage/errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Prev by Date: Re: formatting AS source for web
  • Next by Date: Re: apply catalog info
  • Previous by thread: Re: Quark-bold uppercase paragraphs
  • Next by thread: Re: facespan and reference usage/errors
  • Index(es):
    • Date
    • Thread