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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Help needed with HyperCard

Post by richmond62 »

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 6496 times
-
and I get this response when I press a key:
-
bkgrnFld.png
bkgrnFld.png (3.79 KiB) Viewed 6496 times
-
which has thrown me "right off."
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Help needed with HyperCard

Post by richmond62 »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Help needed with HyperCard

Post by richmond62 »

NOT exactly intuitive, but got "there" in the end:
-
keysDown.png
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Help needed with HyperCard

Post by dunbarx »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Help needed with HyperCard

Post by richmond62 »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Help needed with HyperCard

Post by richmond62 »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help needed with HyperCard

Post by jacque »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Help needed with HyperCard

Post by dunbarx »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help needed with HyperCard

Post by jacque »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Help needed with HyperCard

Post by dunbarx »

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