Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning A value from a Class???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00668213
Message ID:
00668556
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Hello Leroy,

You need ShowWindow property to be zero. Setting it to 2 makes this a modeless form. Also, you can't use the unload() method to return the value. When you close the form, set the return value (thisform.returnValue) and then hide the form.

>>Your GetState form class needs to have its windowType property set to 1 (modal). Otherwise, the code after your show() will run, causing oMyState to go out of scope, which causes it to disappear :)
>
>I already have the windowType property set to 1.
>These are the list of properties that I have set:
>
>ShowWindow = 2  && this causes it to be modeless
>DoCreate = .T.
>AutoCenter = .T.
>Caption = "Get State"
>TitleBar = 0
>WindowType = 1
>WindowState = 0
>AlwaysOnTop = .T.
>BackColor = 128,128,128
>thisstate = ('')
>al_state = ([])
>Name = "getstate"
>sa_label1.Visible = .F.
>sa_label1.Name = "sa_label1"
>
< snip >
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform