General information
Category:
Coding, syntax & commands
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.
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