Sample stack for all properties and custom properties?

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
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Sample stack for all properties and custom properties?

Post by keithglong » Wed Dec 28, 2011 9:36 am

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Sample stack for all properties and custom properties?

Post by jmburnod » Wed Dec 28, 2011 3:13 pm

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
Attachments
ImpExpCustomProp.livecode.zip
(3.13 KiB) Downloaded 298 times
https://alternatic.ch

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: Sample stack for all properties and custom properties?

Post by keithglong » Wed Dec 28, 2011 10:09 pm

Thanks Jean-Marc! Taking a look now... :-)

Sincerely,

- Boo

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: Sample stack for all properties and custom properties?

Post by keithglong » Wed Dec 28, 2011 10:16 pm

Hmmmm. I am having a problem running this stack under Windows 7... Will keep playing with it. (Thanks again.)

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: Sample stack for all properties and custom properties?

Post by keithglong » Thu Dec 29, 2011 1:24 am

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:

Code: Select all

on dansmes t
   if the environment = "development" then
   put t
   end if
end dansmes
Not all of the custom properties are being saved, loaded...

Thanks,

- Boo

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Sample stack for all properties and custom properties?

Post by jmburnod » Thu Dec 29, 2011 2:54 pm

Hi.
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
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
Not all of the custom properties are being saved, loaded...
Yes. Only the customproperties of the stack and of each card of the stack

Best regards

Jean-Marc
https://alternatic.ch

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: Sample stack for all properties and custom properties?

Post by keithglong » Thu Dec 29, 2011 9:03 pm

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...

Post Reply