Thanks! I'm using an old m18, which previously worked with let dirs, but if I have understood you correctly the technology has passed me by, the compiler has been updated and let dirs is no longer needed or supported for this part.The pins of portC on the newer M2 & X2 chips can be set individually to be either inputs or outputs. The 08M2 has just the one portC so you can use either the "let dirs" command or the "let dirsC" command to set this.
The pins on the older chips are all fixed to be either inputs or outputs. You can't set the pins as you would like to so the "let dirs" command is invalid.
You can see which of the 18X pins are inputs and which are outputs in the pdf manual 1 section "At a glance - pinout diagrams (older parts)"
No, that is not the issue. The Picaxe Editor software comes with an individual compiler for every picaxe chip that was ever sold.when I try to load a program into the 18M I get a 'hardware not found' error message. Could this be related to the compiler being updated to work with the new chips?