sliderbug or me being stupid again...?

Wouter wouter.abraham at pi.be
Thu Jul 29 05:37:34 EDT 2004


RE: sliderbug or me being stupid again...?
	• 	From: Wouter
	• 	 Subject: RE: sliderbug or me being stupid again...?
	• 	 Date: Thu, 29 Jul 2004 01:29:43 -0700


-- snip


> Thank you Michael for responding.
>
>
> The real problem is the value passed.
>
>  For example let's say the sb has thumbpos 2.
>  At a certain point, if you trace the little handler in the debugger, 
> you see the value 2 passed to the var tX used for the max amount of 
> loops.
>  But the repeat is looping 3 times.
>  If you first put the thumbpos into a field and take the value form 
> the field then it shows 2 and loops 2 times.
>
> This means the value passed from the sb to the tX var is the trunc 
> value and the value passed to the engine is the round value
>
> Anyway I bugzilla'ed this one as I think if the numberformat is not 
> set it should pass the value shown by the thumbpos as such.
>  
> <http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi? 
> id=1912>
>
>
> Hope this is not stupid :-)
> Greetings,
> Wouter

And another recipe that really shows the problem.
ingredients:
2 *sliders* endvalue set to 10 (no numberformat set), 1 field and 1 
button.

set the script of the button to:

on mouseUp
   put the thumbpos of sb 1 +  the thumbpos of sb 2 into fld 1
   put the thumbpos of sb 1  &&  the thumbpos of sb 2
end mouseUp

As you can see the values passed without setting the numberformat are 
different.

Greetings,
Wouter



More information about the use-livecode mailing list