[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] ReadString
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] ReadString |
Date: |
Mon, 12 Jan 2009 20:31:45 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Antonio Gomez <address@hidden> writes:
> Hi!
>
> U know how can i get a String with blank spaces?
>
> Ok, its something like this:
>
> WriteString ("Write your name:");
> ReadString(name);
> WriteLn;
> WriteString(name);
>
> * If 'name' got two words, like "Antonio Gomez", this code only print
> "Antonio"
> in WriteString(name).
>
> Do you know what i could do to get "Antonio Gomez" and print it in the same
> line?
Hi Antonio,
ReadString in gm2/gm2-libs/StrIO.mod, will do what you require.
Incidentally ReadString in gm2/gm2-libs-pim/InOut.mod is a
reimplementation of the Logitech 4.0 library which, oddly, terminates
a string when it reads 'a blank or control character'. It is safe to
mix StrIO and InOut procedures within your code though..
regards,
Gaius