Hi App Inventors,
I am building a simple tool that generates RGB values for custom colors using sliders.
For a closer look, it is published in the AI2 gallery -
ai2.appinventor.mit.edu/?galleryId=5410470792265728
Keep getting this vexing runtime error:
Value ((non-coercible)) has wrong type (gnu.lists.PairWithPosition) (expected: real) Note: You will not see another error reported for 5 seconds.
Not sure what is triggering the error. During debugging using the AI2 companion, the error only occurs when a slider is first touched. After the error message is displayed, the app works properly, but only during debugging. However if the .apk is downloaded, the app closes after the error message is displayed
I suspect it has to do with the MaxValue, MinValue and ThumbPosition properties of the sliders and rounding off the thumbPosition to whole numbers in the blocks.
Here are screenshots of the blocks, and the slider properties and the working app -


Is my logic faulty? Any help would be greatly appreciated because I plan to use it as a teaching tool in my workshops.
- Akil