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!
2. The syntax is correct and does indded work here in my little test!?'
Is that card in the same stack as that script?
Sure you did not rename that card earlier?
You can always check:
...
if there is a cd "oldname" then...
...
on mouseUp
copy stack "modèle" -- copy of the substack "modèle" of the stack "lancement"
paste --create a stack with new name "copy of modèle"
set the name of stack "copy of modèle" to "nouveau titre" -- change the old name with the new
set the name of card "cartemod" to "titre modifié"-- problem line
close stack "lancement" -- to clear the stack and its substack
delete stack "lancement" -- to remove this stack of the project browser
end mouseUp
pascalh4 wrote:..and no, my script is not in the same stack as the card.
Aha, then just add a correct "descriptor" and it should work:
...
set the name of cd "oldname" OF STACK "name of stack with the card here..." to "newname"
...
pascalh4 wrote:Should I create a direction of "go to" type, or is there another method?
In fact everything is working by adding these two lines (in bold)
copy stack "modèle"
paste
set the name of stack "copy of modèle" to "nouveau titre" go to the stack "nouveau titre"
go to the card "cartemod"
set the name of card "cartemod" to "titre modifié"
close stack "lancement"
delete stack "lancement"
But is there a different or faster method?
Pascal
Last edited by pascalh4 on Thu Aug 22, 2013 3:36 pm, edited 2 times in total.
OK, but 2 hints:
1. do not use:
go to THE card...
-> go to cd xyz
or
go to THE stack...
-> go to stack zyx
The keyword THE is for custom properties.
2. As I wrote in my first post, no need to GO to the stack and/or the card!
Just add a precise description of the card and you are done:
...
set the name of card "cartemod" OF STACK "nouveau titre" to "titre modifié"
## Cleanest and fastest solution
...
Klaus thank you very much for that.
I will do tests and I will continue my discovery.
I also want to ask a more general question about the topics. Where can I find an explanation of the icons of the questions (that means the little star, for example)
and how it should end this discussion.
Sorry for my bad English spoken (thank's google translate ).
I would like to know the meaning of the icons to the left of the topic discussed. (especially the star)
I tried to attach a photo, but I'm not happened.
I get this message: "Your account does not have permission to post links or domain/page references".