Hi Kurt! apart from religion - I was just wondering what the advantage might be of using a property in this case.
I seem to be using much more globals than you guys do. I've often asked myself if I was missing something. Please explain! Thanks Michael von Aichberger -----Ursprungliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Kurt Griffin Gesendet: Dienstag, 26. Februar 2002 15:43 An: [EMAIL PROTECTED] Betreff: Re: <lingo-l> Very basic variable question. > you have to give the variable an initial value, and also you will need to make > it global. > > global gIncre > on mouseUp > if gIncre=VOID then gIncre=0 > gIncre=gIncre+2 > put gIncre > end Actually, you don't have to give gIncre an initial value, though it's probably good practice to do so. Lingo is fairly loosely scripted. Also, there's another alternative - make gIncre a property. The choice between property and global mainly depends on your goals and/or religion. property pIncre on mouseUp pIncre=pIncre+2 put pIncre end [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
