Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference a form from another form
Message
De
16/04/1999 18:33:05
 
 
À
11/04/1999 08:49:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00207251
Message ID:
00209251
Vues:
23
Hi Ed,

I can now do everything except do a seek or a locate on the table from the form oSearch. For some reason it moves me to the end of the table like the record can't be found (it's there). Everything seems to reference the cursor when I check it but when I do a seek or locate nothing... Is this not possible from a modal form that is created on the fly??

Thanks
>>I am creating a form from a method in a grid with the following code
>>
>>*MyGrid.SearchForm()
>>LPARAMETER oHeader
>>oSearch = CREATEOBJECT("searchform", oHeader)
>>oSearch.Show()
>>
>>In the init of oSearch I have the following code
>>
>>*SearchForm.Init
>>PARAMETERS oHeader
>>This.Caption = "Search the " + oHeader.Caption + " Column"
>>
>>The above works fine.
>>
>>In the click of a command button on the modal form oSearch I have the following
>>
>>*SearchForm.Command1.Click
>>ThisForm.Text1.Value = oHeader.Parent.ControlSource
>>
>>When I click the command button I get the following error "Object oHeader not found".
>>
>>Why isn't oHeader visible in the command.click method?
>
>oHeader goes out of scope and disappears once the Init event completes; to make it available later, save it in a form property and use the form property to reference the object.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform