Strings are "Schema types" in GNU Pascal which is something more
complicated than Borland-style strings. For variables, you
cannot specify just String
as a type (always specify the
maximum length); for parameters you can. There is no 255 length
limit. According to Extended Pascal, the maximum string length
must be in (parantheses); GNU Pascal accepts [brackets],
however.
For more about Strings and Schema types see See section GNU Pascal extensions and See section About Pascal and Extended Pascal languages.
String-handling functions (see See section GNU Pascal extensions) are different in both dialects but can approximately be mapped on each other:
Borland Pascal GNU Pascal length length Pos Index Str WriteStr Val ReadStr Copy SubStr, MyStr [ 2..7 ] MyStr [ 0 ]:= #7; Trim - EQ, NE, LT, LE, GT, GE Insert - Delete -
It should not be difficult to write a compatibility Unit--if you do so, please send it to us!