BackGroundPattern in Reverse

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

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

BackGroundPattern in Reverse

Post by richmond62 » Sat Apr 16, 2022 6:56 pm

So: I have a situation like this:
-
SShot 2022-04-16 at 20.51.29.png
-
Which works exactly as I would expect it to.

And this:
-
SShot 2022-04-16 at 20.52.28.png
-
Which, as expected, returns the ID of image 0.png.

HOWEVER, I would like to know if there is a way to have the NAME of the image
that is the backGroundPattern returned rather than the image ID.

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

Re: BackGroundPattern in Reverse

Post by richmond62 » Sat Apr 16, 2022 7:00 pm

While this works:
-
SShot 2022-04-16 at 20.58.54.png
-
I was wondering if one could do this in a one-liner.

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

Re: BackGroundPattern in Reverse

Post by richmond62 » Sat Apr 16, 2022 7:03 pm

Oops: answering my own question; again, again, again . . . 8)
-
SShot 2022-04-16 at 21.01.51.png
-
Not much that I can say except:
-
7L.png
7L.png (9.88 KiB) Viewed 1166 times

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”