>Maybe you should report it to Foxteam
Don't bother, I've already bugged it. Weird one, too. If you use CREATE instead of NEWOBJ, it compiles. Works from the command line, works from a PRG in the IDE. Doesn't matter what type of compile (EXE, DLL, etc.), it just plain won't compile. Something munged in the parser, obviously.
Mike Stewart