I want to return a value from a form which is instatiated modal form a class but it doesn't work because I get the returnvalue back of the show method :
oMyForm=createobject("Myform")
nReturnvalue=oMyform.show(1) && can't use .visible and .windowtype because it has to be modal
I have an OK and Cancel button that release the form but I don't manage to alter the show's returnvalue. It seems that the value I get back is the one at 'SHOW' time, not at 'RELEASE' tiem.
Any ideas ?