Renaming external images

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

Renaming external images

Post by richmond62 » Fri Sep 22, 2023 9:53 am

. . . seems problematic . . .

Code: Select all

on mouseUp
   put 1 into KARTINA
   repeat until FINN contains "XXX"
      if exists(image KARTINA) then
      put the short name of image KARTINA into PIKK
      put "GS" before PIKK
      set the short name of image KARTINA to PIKK
   else 
   put "XXX" into FINN
end if
add 1 to KARTINA
end repeat
end mouseUp
The IDE takes umbrage at "set the short name". . . ouch . . . off for my second cup of coffee.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Renaming external images

Post by Klaus » Fri Sep 22, 2023 9:59 am

Hi Richmond,

just use "the name of ...".
And yes, it is confusing when to use "name" or "short name".

Best

Klaus

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

Re: Renaming external images

Post by richmond62 » Fri Sep 22, 2023 10:03 am

Thank you very much, that does the trick . . .

BUT . . . how are goofy types like me to find that out without having to ask 'less-goofy' types like you? :lol:

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Renaming external images

Post by Klaus » Fri Sep 22, 2023 11:00 am

I memorize everything I learned and/or tried out in the last 24 years of using MC/RunRev/Rev/LC! :-)

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

Re: Renaming external images

Post by richmond62 » Fri Sep 22, 2023 11:02 am

I'm glad your memory is that good.

Personally I'm trying just now to remember the name of all the new victims in my EFL school this September.

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

Re: Renaming external images

Post by richmond62 » Fri Sep 22, 2023 12:05 pm

This has resulted in this:

Change your Toolbar icons from blue to grey, and back again. 8)
-
Screen Shot 2023-09-22 at 13.49.48.jpg
-
AND this:

Change your Toolbar and Menubar background colours.
-
Screen Shot 2023-09-22 at 13.36.07.png
-
They are both available here: https://www.dropbox.com/scl/fo/3tq99hm5 ... sf7ed&dl=0

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”