Page 1 of 1

maxchrs setting is ignored

Posted: Wed Sep 09, 2020 2:12 pm
by amyren
I use stringrequest to get a numerical value, and I use maxchrs to limit the number of digits allowed.
When running the program on Windows it works, I can only enter 1 digit. But running it on MorphOS or OS3 it seem to ignore the maxchrs setting, and accepts any numer of digits to be entered.

Does the maxchrs setting only work for non-numerical strings on Amiga systems, or am I entering this wrong?

Code: Select all

AI_speed = StringRequest("1 player mode : CPU Speed", "Set Computer player speed, Default=4", AI_speed, #NUMERICAL, 1)

Re: maxchrs setting is ignored

Posted: Thu Sep 10, 2020 7:24 pm
by airsoftsoftwair
This is a reqtools.library limitation. It doesn't support a maximum string length when in numerical mode.

Re: maxchrs setting is ignored

Posted: Fri Sep 11, 2020 12:53 pm
by amyren
Ok.Thanks for the clarification.