[fpc-pascal] Illeagal assignment to For Loop variable in Free pascal
Juha Manninen
juha.manninen62 at gmail.com
Wed Jun 18 09:16:49 CEST 2014
On Wed, Jun 18, 2014 at 6:42 AM, Ralf Quint <redroost at gmail.com> wrote:
> A totally different solution and also more universal (not depending on the
> length of the filename to be exactly 8 characters long would be
>
> while ((Length (Filename) > 0) AND (Filename (Length (Filename) = ' ') do
> Delete (Filename, Length (Filename), 1);
How about :
Filename := Trim(Filename);
Juha
More information about the fpc-pascal
mailing list