>It's happening as a result of createobject('myform'), and of course nothing gets created.
>
>Afaik, I have no oFormRef variable, so it's something within VFP or one of it's classes.
>
>All I get back is the error and the line, which is of no use at all, since it's the line with the createobject statement.
You can use Code References tool to search your project for 'oFormRef'.
--sb--