Help needed with HyperCard

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Help needed with HyperCard

Post by richmond62 » Sun Feb 13, 2022 6:44 pm

Trust me to hit a point where HyperCard differs from LiveCode and
Danny Goodman's books is silent.

I have a stack with 2 fields: "fABC" and "f123" on a card called "KARD".

The card contains this script:
-
hcScript.png
hcScript.png (1.86 KiB) Viewed 3745 times
-
and I get this response when I press a key:
-
bkgrnFld.png
bkgrnFld.png (3.79 KiB) Viewed 3745 times
-
which has thrown me "right off."

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Help needed with HyperCard

Post by richmond62 » Sun Feb 13, 2022 7:15 pm

And bkgnd seems an odd abbreviation for background . . .

Probably time I stumped off to feed my alcoholic habit. :D

Word of the week: Curmudgeonly.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Help needed with HyperCard

Post by richmond62 » Sun Feb 13, 2022 7:51 pm

NOT exactly intuitive, but got "there" in the end:
-
keysDown.png

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Help needed with HyperCard

Post by dunbarx » Sun Feb 13, 2022 11:22 pm

Richmond.

You did everything but say what is was the threw the error. Perhaps it lies in the fact that in HC there are two kinds of fields, "card" and "Background"?

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Help needed with HyperCard

Post by richmond62 » Mon Feb 14, 2022 9:08 am

What threw the error was that, initially, my fields were just on the card, and the cardScript, for some reason, did not
want to put data into them and demanded backGround fields.

As the last time I did anything vaguely serious with HyperCard was in 1998 I had forgotten about HOW to make backGround
fields, so spent some time fooling around working out how to do that.
-
SShot 2022-02-14 at 10.18.48.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Help needed with HyperCard

Post by richmond62 » Mon Feb 14, 2022 12:55 pm

Even if nothing else my "side trip" with HyperCard has shown me how much easier the LC GUI is and how
far it has advanced.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Help needed with HyperCard

Post by jacque » Mon Feb 14, 2022 5:22 pm

It wasn't really demanding a background field, but it was expecting one. If not specified, HC fields are assumed to be background fields. Buttons are assumed to be card buttons. Since the handler didn't specify the error reported no bg field.

You could fix that by specifying the layer:
Put KD after cd field...
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Help needed with HyperCard

Post by dunbarx » Mon Feb 14, 2022 5:29 pm

Richmond.

Background fields and card fields depend on whether the background is selected when a new field created. It is sort of a separate environment, selected via "cmd-B". Once in background mode, any new field will be a background field. In "normal" mode, any new field will be a card field.

It took me a while to get used to the fact that in LC, there was no background object, and only one kind of field. And that groups were required to emulate the background "behavior" in LC.

But now the old HC way seems outdated, I love that there is only one kind of field, and I have gotten used to groups with their backGroundBehavior set.

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Help needed with HyperCard

Post by jacque » Mon Feb 14, 2022 5:57 pm

I also like that you can have more than one bg group on a card.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Help needed with HyperCard

Post by dunbarx » Mon Feb 14, 2022 6:19 pm

Jacque.

Yes. The "compartmentalization" of the background paradigm with groups allowed that. I used to hate the change. But like most changes, it is not a big deal any longer.

Craig

Post Reply

Return to “Off-Topic”