Larry,

Glad I could offer something useful.

Jan
 


-----Original Message-----
From: Lawrence Lustig <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Thu, 2 Apr 2009 12:35:33 -0700 (PDT)
Subject: [RBASE-L] - Re: Setting segment sizes on METER in code.


<<
The gist I got from R:Docs is that there is only 10 segments to play with.
So maybe you have to reduce your numbers to 10 so if you change 
segment 1 to 6 then segment 2 and 3 can only add to 10. 
I don't know but it might be worth a try. 
>>


Actually, it turns out that you can go to 255 segments in the total count 
(adding up segments 1, 2, and 3).  Anything over and you get this RANGE 
ERROR (obviously, something's overflowing a TinyInt single byte internal 
buffer someplace).  The trick is scaling your 255 segments to whatever MAX 
you put on the meter.  I'm well on my way to getting this solved.


Thanks for pointing me in the right direction.
--
Larry

Reply via email to