Hilohi Gabriel wrote:
while s <> " " do
and s was s:string[1000]
The following works for me: Program Test; Var S: String [ 1000 ]; begin while S <> " " do S:= " "; end. However ...
Do i have to say while s <> ' ' ???
... yes. Pascal strings are in ''; GPC accepts "" as an extension. Better use ''. You know that ' ' (or " ") is a string that contains a space? The empty string is '' (or ""). Hope this helps, Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 *** Vote against SPAM! ********* http://www.politik-digital.de/spam/ ***