little arrows Increase/decrease a field value

rev at armbase.com rev at armbase.com
Sat Oct 8 13:44:28 EDT 2005


Quoting Mark Wieder <mwieder at ahsoftware.net>:

> Bob-
>
> Saturday, October 8, 2005, 5:07:40 AM, you wrote:
>
>> It seems that they are Scrollbars and A search for scrollbars says 
>> use something
>> like this.
>> on scrollbarLineDec
>>   Put field ButtonWidth into tBtnWidth
>>   put (BtnWidth + 1) into BtnWidth
>>   Put BtnWidth into field ButtonWidth
>> end scrollbarLineDec
>
>> on scrollbarLineInc
>>     Put field ButtonWidth into tBtnWidth
>>   put (BtnWidth -1) into BtnWidth
>>   Put BtnWidth into field ButtonWidth
>> end scrollbarLineInc
>
> Not sure what you expected to happen here, but did you mean tBtnWidth
> for those variables? If you change them, then the value in the field
> goes up and down.
>
> Try enabling "Variable Checking" in the Script menu, or better yet,
> change the Script Editor preferences to enable "Variable checking by
> default". That's what it's for.

Hi Mark

Yep I noticed it. Thanks for the info on the editor preferences.

Cheers
Bob
>
> --
> -Mark Wieder
> mwieder at ahsoftware.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>






More information about the use-livecode mailing list