Scripts

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tal
Posts: 84
Joined: Thu Jul 02, 2009 3:27 pm

Scripts

Post by tal » Wed Feb 24, 2010 3:52 pm

Hello,

Is there an easy way to know how many scripts and lines of scripts do I have wrote in my application?

I only know this code

Code: Select all

put the number of lines of the script of stack "A"
Thanks

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Scripts

Post by BvG » Wed Feb 24, 2010 5:33 pm

almost there

just repeat for each card, and within that for each control, similar to this:

Code: Select all

on mouseUp
  put the name of the mousestack & return &  the script of the mousestack & return & return into theResult
  repeat for the number of cards in the mousestack
    add one to cardNumber
    put the name of card cardNumber & return &  the script of the card cardNumber & return & return after theResult
    repeat for the number of controls of card cardNumber
      add one to controlNumber
      put the name of control controlNumber & return & the script of control controlNumber & return & return after theResult
    end repeat
  end repeat
  put theResult into field "result"
end mouseUp
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

tal
Posts: 84
Joined: Thu Jul 02, 2009 3:27 pm

Re: Scripts

Post by tal » Wed Feb 24, 2010 5:39 pm

Thats what I did, thank you.

Post Reply