Hi David!!
Good Day!!
eg:
1. local oFrm
2. oFrm= createobject('myform')
3. oFrm.show(1)
4. itemno= oFrm.myitemno
david before posting thread ,i was doing it in the sameway. But at line no. 4 it says itemno is not an object. that is why i posted the thread.
Because when focus shifts back to calling form , instance of the myform is not there in memory. this what i figured out.
But later i did it with a trick...(by hiding the stdhelp form in double click event of listbox,or command button)
Calling form :
local oHelp,Retval
oHelp = createobject("StdHelp")
oHelp.properties = ..... && set different properties here
oHelp.show(1)
Retval = oHelp.Retvalue
oHelp.release()
*---- StdHelp form
-- eg. in the double click event of listbox
thisform.Retvalue = thisform.lstbox.value && set the value to be returned
thisform.hide()
Now please tell me that is it a right approach or there is something else can be done.
Also David please guide how can i use classes in my projects and how people become MVP.
Regards
Sunny
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only