Rafal,
Can you show us exactly how you are calling this method so that we've got more to go on?
>In my app I'm running one form method from second one. If I do it in VFP 50 environment everything is o'k, but if I make .exe I get error '1923 Object name is not found'. If I declare "public name" in my main code I get error '1924 name is not an object'. How to access the second form.