Well, Lazarus should not affect PascalScript at all unless you use units which are supposed to provide access from script to visual components. I remember I used PascalScript once, not too long ago. Worked with FPC 2.6.2 well. Why don't you see the definition of the length property? Perhaps this line of code assigns field of a read-only record property (header) which was possible in earlier versions of FPC, but not anymore. Maybe there are few errors like this, you can fix them yourself. // I remember I had to do this too. There were like five compile time errors, but I corrected them myself and after that PascalScript worked fine