Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-04

paranstr

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alejandro Néstor Vargas

I'm writing a program that uses long strings. I defined all string variables asansistgring using {$LONGSTRINGS ON}, but when I retrieves comman line parameters with paramstr(1), they are truncated at 256 chars. Is this a bug? Arethere another way for doing this in order to avoid the problem?

Alejandro Néstor Vargas ICQ: 20528995 Departamento de Desarrollo X Net Cuyo S.A.

Reply by email

Florian Klaempfl
you wrote 5 lines
I'm writing a program that uses long strings. I defined all string variables asansistgring using {$LONGSTRINGS ON}, but when I retrieves comman line parameters with paramstr(1), they are truncated at 256 chars. Is this a bug? Arethere another way for doing this in order to avoid the problem?

Use the sysutils unit, it overrides paramstr with an ansistring version. Or does
it the objpas unit, then -Sd or -S2 is enough?

Hmmm, I'am not sure, check the manual or the sources of these two units.

Reply by email