Hi Ricardo,
The problem is this,
I have a form(ParentForm) where the only coding is in the LoadEvent and it reads like this:
do 'vpmsql.exe' with 'ChildForm'
return .f.
Now, vpmsql.exe contain many forms including one call(ChildForm). The main
object of vpmsql.exe is a small main.prg which read like this:
parameters lcpmform
InitEnvironment()
lcpmform = "/forms/" + lcpmform
read events
do form &lcpmform
When ChildFrom opens, it does not get refresh and populate with data (I use a drop down list box as an example of what is not working but it's not the only object that I have trouble with, so the problem and the solution does not reside in the object itself).
I found a solution being this: In the GotFocus() method of the first object that get focus on ChildForm, I do "thisformset.refresh()" and it solved the problem.
QUESTION:
Can somebody explain why I need to force thisformset.refresh(), why isn't done autamatically? Somehow, I get frustrated when I don't understand something that doesn't seems logical to me.
Is there something I can put in the "do form &lcpmform that will make it work? Maybe I should add something or use something else instead of main.prg? I really don't have enough knowledge in FoxPro to understand the problem here.
BTW: It would be too long to explain why I use this method to open the form, but right now I have no other choices.
TIA,
Diane Robitaille eng.