Re: Counters

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Wed, 19 Mar 1997 23:36:42 -0600

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

From: rander+@postbox.ius.cs.cmu.edu
>I just realized that I can set a counter to a value outside its
>valid range. For example,
> fl_set_counter_bounds (mycounter, 0.0, 10.0);
> fl_set_counter_value (mycounter, -1.0);

> double newval = fl_get_counter_value (mycounter);
>then newval will be set to -1 too.

>Is this behavior desirable for some reason?

No, not really. Unless someone violently objects
(and convinces me it's a bad idea), I will change set_counter_value
so value will be clamped to the bounds.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/