How to rename a stack with a button??

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
Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

How to rename a stack with a button??

Post by Fasasoftware » Mon Apr 09, 2018 10:08 pm

How to rename a stack with a button but asking the name of the renamed stack?? :oops: ??
best regards,
lestroso :oops:

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

Re: How to rename a stack with a button??

Post by richmond62 » Mon Apr 09, 2018 10:26 pm

Could you explain things a bit better: maybe with a picture?

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to rename a stack with a button??

Post by bogs » Mon Apr 09, 2018 10:52 pm

Why wouldn't this work? (Feel free to embellish it a LOT )

Code: Select all

// all code in buttons handler...
on mouseUp
   createNuStack
end mouseUp

on createNuStack
   ask "Stack name?"
   create stack it
   save stack it as it & ".testStack" //<- or whatever extension you want to use...
end createNuStack
Image

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

Re: How to rename a stack with a button??

Post by richmond62 » Mon Apr 09, 2018 11:07 pm

Ah, so this is just a reduplication of the other posting.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to rename a stack with a button??

Post by bogs » Tue Apr 10, 2018 3:26 am

Apparently, I saw the other post after writing the above Richmond. Oh the shame of it all :cry:
Image

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

Re: How to rename a stack with a button??

Post by Fasasoftware » Tue Apr 10, 2018 6:19 pm

there's again the same problem.... the script don't save anything...

thanks alot in any way..
lestroso :oops:

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”