Page 1 of 1

Unintentional Limit in StringRequest()

Posted: Sat Sep 16, 2017 9:24 am
by PEB
There seems to be a limit to the length of a string that can be received through StringRequest().
At least on OS4, that limit seems to be 1023.

I'm guessing that this is not intentional. Can it be fixed in the next version of Hollywood?

Re: Unintentional Limit in StringRequest()

Posted: Mon Sep 25, 2017 6:45 pm
by airsoftsoftwair
The problem is that on all Amiga platforms the string requester functions operate on static buffers so there has to be a limit. I could of course raise this to 4096 or to an even higher value. What do you need? On Windows, MacOS, and Linux the limit can of course be removed completely but on Amiga platforms there needs to be a limit.

Re: Unintentional Limit in StringRequest()

Posted: Mon Sep 25, 2017 11:42 pm
by PEB
I actually only need the limit removed on the Android version.
Since there's no RapaGUI option for Android, I'm using StringRequest() to allow the user to input text, edit, copy, and paste.

Re: Unintentional Limit in StringRequest()

Posted: Tue Sep 26, 2017 7:38 pm
by airsoftsoftwair
Okay, this is possible:

Code: Select all

- Change: StringRequest() had a limit of 1024 characters; on AmigaOS and compatibles Hollywood still
  imposes this limit but on all other platforms it has been removed

Re: Unintentional Limit in StringRequest()

Posted: Tue Sep 26, 2017 11:59 pm
by PEB
Thanks!