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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement