[fpc-pascal]UNCGI issues

BigMatt19 at aol.com BigMatt19 at aol.com
Tue Jun 19 04:45:18 CEST 2001

   Thank you all for the quick responses.  The problem is this though:

   I am using the post method to get the contents of a <textarea> tag.  In the source code it says there is a limitation of the UNCGI unit in that it cannot pass params >255 chars.  I tried simply converting everything to ansistrings but then the results came back funny.  I think somewhere it relies on the s[0] element (which ansistrings don't support).

   Any more ideas?

   - Matt

In a message dated Mon, 18 Jun 2001  7:41:10 PM Eastern Daylight Time, Fernando Lozano <fsl at centroin.com.br> writes:

<< Hi Matt,

>    I've been using UNCGI to develop some cool little CGI apps lately and I have
> run across only one problem.  Namely, the fact that get_value will not return
> anything longer than 255 chars.  I've tried putting it into a pchar and into a
> ansistring with no luck.  Please help with a solution.  I will modify the uncgi
> code if required.. but i need to know what direction to take in doing so.

I guess this is because (Turbo) Pascal Strings cannot be longer than 255
chars. So you should change the source of uncgi to use pchar or
ansistrings for all string manipulations. It is not enough to convert to
a pchar or ansistring at the end, because if anywhere you get a standard
string the result will be truncated to 255 chars.

[]s, Fernando Lozano

fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org

More information about the fpc-pascal mailing list