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 Charlie Fiskeaux II The Creative Group www.cre8tivegroup.com 859/858-9054 x29 cell: 859/312-3883 ----- Original Message ----- From: "two two two" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 10:23 PM Subject: <lingo-l> Very basic variable question. I have a very very basic lingo question. -------------- on mouseUp gIncre = gIncre + 2 put gIncre end -------------- I'm trying create a lingo script where every time I click on text, the number increment. Here I'm just trying to "put" the updated number in the message window. Any ideas where my problems are? _____________________________________ Garman Herigstad 912-897-1108 [EMAIL PROTECTED] [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!]
