myRef = createobject() if ( vartype( m.myRef ) == "O" ) with m.myRef endwith endif
>myRef=CREATEOBJECT(...) && this fail > WITH M.myRef >.. >
>WITH CREATEOBJECT(...) && this fail >... >