HC to R question
Richard Gaskin
ambassador at fourthworld.com
Sat Aug 23 09:13:01 EDT 2003
Dale Pond wrote:
> Seems Rev doesn't like abbreviations
Rev is very good about honoring abbreviations, and offers them for its
unique object types as well (e.g., "scrollbar" can be written "sb" -- thank
you Scott!).
Rev is also generally good about being able to identify objects by name,
ordinal number, or ID. If you've encountered problems addressing cards by
name and find that the ordinal number works, I'd double-check the card name
in question and whether it's in the default stack at the time the handler is
called.
For example, palette windows are not a true stack in HyperCard, so any
script in a palette which navigates to a card by name will assume it's
referring to the topmost stack. But with Rev allowing stacks to take on a
variety of modes, including palette, the defaultStack and the topStack may
not always be the same thing. You coud get past that ny setting the default
stack from your palette's script:
on mouseUp
set the defaultStack to the topStack
go next
end mouseUp
Another factor that may come into play is the difference between how
HyperCard and Revolution refer to objects. In HyperCard you must specify
"bg" for background buttons and "cd" for card fields. Rev takes a simpler
approach in which references to objects do not need to specify layer. For
compatibility, however, the hcAddressing stack property makes Rev use
HyperCard0style object references. If memory serves this property is set to
false for new stacks but true for stacks converted from the HyperCard
format.
For a great discussion of conversion issues see Jacque Gay's excellent
article on the subject at:
<http://www.hyperactivesw.com/mctutorial/index.html>
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the use-livecode
mailing list