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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

How to rename a stack with a button??

Post by Fasasoftware »

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

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

Post by richmond62 »

Could you explain things a bit better: maybe with a picture?
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs »

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

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

Post by richmond62 »

Ah, so this is just a reduplication of the other posting.
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs »

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
Contact:

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

Post by Fasasoftware »

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

thanks alot in any way..
lestroso :oops:
Post Reply