long dropdown list issue - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: long dropdown list issue (/thread-4407.html) |
long dropdown list issue - salvomic - 07-23-2015 05:58 AM hi, the code below sometimes works, sometimes gives "Bad argument value", sometimes resets the Prime (grrrr!)... Why? I reset the sunCalc() function to test here (also if the problem be there, but it from elsewhere works well)... Try with: asteroidMagnitude(2,2,{2015,7,22}) -> {7.68, 3.34, "Ceres"} asteroidMagnitude(9,9,{2015,7,22}) -> should returns {16.54, 6.5, "Chiron"} but gives also Error: Bad argument value or resets. Also when "Aten" is chosen... Is it a 18 item list "too" long? Salvo Code:
RE: long dropdown list issue - DrD - 07-23-2015 09:59 AM The INPUT() statement, specifically using the choose variant, seems to have a bug when Choosing a selection from a list with an index greater than 9, (anything requiring scrolling down). The selection is successful just one time. Re-running the program again, with that same selection will cause a crash. Memory corruption occurs as a result of the Choice scrolling activity. -Dale- RE: long dropdown list issue - salvomic - 07-23-2015 11:24 AM (07-23-2015 09:59 AM)DrD Wrote: The INPUT() statement, specifically using the choose variant, seems to have a bug when Choosing a selection from a list with an index greater than 9, (anything requiring scrolling down). The selection is successful just one time. Re-running the program again, with that same selection will cause a crash. yes Dale, I think the same thing. In another program I noted also that using two different lists (like months and days), the longer will be truncated at the size of the shorter. I think to divide the list into parts and handle them with another choose list: a bit tricky and maybe ugly, but more secure, I hope... Salvo RE: long dropdown list issue - DrD - 07-23-2015 11:38 AM The "team" is aware of the the problem, and perhaps a solution will find its way in a future release. I also encountered this, in a different program, and there was a bug fix for the issue, but trouble remains. The choice format of the INPUT command is a great feature, and the problem should be fixable. -Dale- RE: long dropdown list issue - salvomic - 07-23-2015 12:30 PM (07-23-2015 11:38 AM)DrD Wrote: The "team" is aware of the the problem, and perhaps a solution will find its way in a future release. I also encountered this, in a different program, and there was a bug fix for the issue, but trouble remains. The choice format of the INPUT command is a great feature, and the problem should be fixable. I agree! I hope the "team" could solve soon the issue... In the meantime, do you think it could be a good solution to divide the list into two alphabetically series and choose one with a previous "choosing list", or could it seem to be too "bogus"? Salvo RE: long dropdown list issue - DrD - 07-23-2015 03:53 PM Divide and conquer is a good idea (for now). You might display a PRINT chart for INPUT choices based on a number range or an alphabetical range. The chart might have a set of lists containing nine choices, from which an INPUT could then display the selected sublist to get to the actual data point of interest, as just one idea. RE: long dropdown list issue - salvomic - 07-23-2015 04:01 PM (07-23-2015 03:53 PM)DrD Wrote: Divide and conquer is a good idea (for now). You might display a PRINT chart for INPUT choices based on a number range or an alphabetical range. The chart might have a set of lists containing nine choices, from which an INPUT could then display the selected sublist to get to the actual data point of interest, as just one idea. Divide et impera! Romans were masters in that "strategy", and computer science's engineers, also Thanks, Dale, good idea. I'm adding to that I'm trying now (see the partial code): a first input to ask for series (1-10, 10-20, others) based on Asteroid's number (i.e. Ceres 1, Pallas 2...), than three IF for the series. Doing so I could put only about 26-27 bodies, but the most brighten of the sky are not more than 10-20, isn't it, Marcel? Salvo Code:
RE: long dropdown list issue - Marcel - 07-23-2015 09:28 PM Hi Salvomic! Yes, you are right.. Marcel. |