Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can We Return Values From Class Objects
Message
De
26/07/2001 23:02:31
Devrishi Bhogra
Escorts Claas Limited
Faridabad, Inde
 
 
À
26/07/2001 02:51:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00535541
Message ID:
00536188
Vues:
9
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
Fil
Voir

Click here to load this message in the networking platform