maxchrs setting is ignored

Find quick help here to get you started with Hollywood
Post Reply
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

maxchrs setting is ignored

Post 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)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: maxchrs setting is ignored

Post by airsoftsoftwair »

This is a reqtools.library limitation. It doesn't support a maximum string length when in numerical mode.
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: maxchrs setting is ignored

Post by amyren »

Ok.Thanks for the clarification.
Post Reply