pdietrich@synstar.de wrote:
GPC cannot compare string with < or >. The following program shows this fact:
program test (output);
var str1 : string[10] := 'MODULE'; str2 : string[10] := 'LABEL';
begin writeln ('str1=str2: ', str1=str2); writeln ('str1<str2: ', str1<str2); writeln ('str1>str2: ', str1>str2); end.
The output of this program is:
str1=str2: False str1<str2: False str1>str2: False
There was a bug in the last beta release (only), in that the (non-trimming) '>' and '<=' string operators were mixed up. This will be fixed in the next release.
Frank
-- Frank Heckenbach, frank@fjf.gnu.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html