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

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Documenting Custom Properties

Post by phaworth »

Anyone know of a utility that will display/print all the custom properties for all or objects in a group/card/stack?
Thanks,
Pete
BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG »

how about this (untested):

Code: Select all

on mouseUp
  repeat for the number of cards in the mousestack
    add one to cardNumber
    repeat for the number of controls of card cardNumber
      add one to controlNumber
      put the customproperties of control controlNumber into theArray[the short name of the mousestack][the short name of card cardNumber of the mousestack && the ID of card cardNumber of the mousestack][the name of control controlNumber && the ID of control controlNumber]
    end repeat
  end repeat
end mouseUp
there all in an easy to parse array, i'm sure you can go on from here.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth »

Thanks, I'll give that a try.
Pete
Post Reply