Sample stack for all properties and custom properties?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
Sample stack for all properties and custom properties?
Hi All,
Does anyone know of a sample stack demonstrating how to pull all of the properties and custom properties out of a stack, putting them into a file, and then demonstrating how to put the file of data back into the stack (or into another copy or clone of the original stack)?
Thanks,
- Boo
Does anyone know of a sample stack demonstrating how to pull all of the properties and custom properties out of a stack, putting them into a file, and then demonstrating how to put the file of data back into the stack (or into another copy or clone of the original stack)?
Thanks,
- Boo
Re: Sample stack for all properties and custom properties?
Hi KeithLong,
In attachment, one stack for export custom prop of stack and cds to a file and import from the file
I hope this help
Best regards
Jean-Marc
In attachment, one stack for export custom prop of stack and cds to a file and import from the file
I hope this help
Best regards
Jean-Marc
- Attachments
-
- ImpExpCustomProp.livecode.zip
- (3.13 KiB) Downloaded 298 times
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
Re: Sample stack for all properties and custom properties?
Thanks Jean-Marc! Taking a look now... 
Sincerely,
- Boo

Sincerely,
- Boo
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
Re: Sample stack for all properties and custom properties?
Hmmmm. I am having a problem running this stack under Windows 7... Will keep playing with it. (Thanks again.)
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
Re: Sample stack for all properties and custom properties?
Hi Again,
I reformatted the file paths for the opening, saving of files... However, having a problem with the following lines of the Stack's script:
Not all of the custom properties are being saved, loaded...
Thanks,
- Boo
I reformatted the file paths for the opening, saving of files... However, having a problem with the following lines of the Stack's script:
Code: Select all
on dansmes t
if the environment = "development" then
put t
end if
end dansmes
Thanks,
- Boo
Re: Sample stack for all properties and custom properties?
Hi.
This script is a development tool. I use it to watch a value in the messageBox when the script work.
It work only if the environment = "development".
It is to easy to find it before building the standalone and if you forget one the script don't work in a standalone
Best regards
Jean-Marc
However, having a problem with the following lines of the Stack's script:
Code: Select all
on dansmes t
if the environment = "development" then
put t
end if
end dansmes
It work only if the environment = "development".
It is to easy to find it before building the standalone and if you forget one the script don't work in a standalone
Yes. Only the customproperties of the stack and of each card of the stackNot all of the custom properties are being saved, loaded...
Best regards
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
Re: Sample stack for all properties and custom properties?
Hi Again,
Yep, I realize that about the Message Box. (I need to utilize that feature more often myself.)
And regarding the custom properties not being saved, only two of the option menu buttons are being saved/updated...
For example:
cPage1 MyProp1 green, MyProp2 true, MyProp3 green
I set all of them to green, but the mMyProp2 button does not change from true to green. Same on the second card... (I have not had time to look into it, but I am sure I will be able to figure it out.)
Thanks again,
- Boo
**** Update ****: I deleted the mMyProp2 button, recreated it, then regrouped the buttons. All works now. For some reason, the original mMyProp2 button in the original script was not registering... I checked it in the inspector, made sure it was grouped, that it was named correctly, etc. Not sure why it wasn't working...
Yep, I realize that about the Message Box. (I need to utilize that feature more often myself.)
And regarding the custom properties not being saved, only two of the option menu buttons are being saved/updated...
For example:
cPage1 MyProp1 green, MyProp2 true, MyProp3 green
I set all of them to green, but the mMyProp2 button does not change from true to green. Same on the second card... (I have not had time to look into it, but I am sure I will be able to figure it out.)
Thanks again,
- Boo
**** Update ****: I deleted the mMyProp2 button, recreated it, then regrouped the buttons. All works now. For some reason, the original mMyProp2 button in the original script was not registering... I checked it in the inspector, made sure it was grouped, that it was named correctly, etc. Not sure why it wasn't working...