little arrows Increase/decrease a field value

Mark Wieder mwieder at ahsoftware.net
Sat Oct 8 12:31:30 EDT 2005


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.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list