Very strange. I now see how it works. This is what I tested:
MyForm Init
DO myprog WITH ThisForm
myprog.prg:
LPARAMETER cFormWindowName
WAIT WINDOW "Window: " + cFormWindowName.name
cFormWindowName.caption = "My New Caption"
Here was the problem, I was trying to do this:
EVALUATE(cFormWindowName + ".caption = 'My New Caption'")
I didn't realize that the variable actually becomes the object.
>Pass the form reference as a parameter
>
>>Example:
>
>MyForm Init
> DO PROGRAM showformname WITH ThisForm
>
>
>
>showformname.prg:
> LPARAMETERS poForm
> WAIT WINDOW "Form Name: " + poform.name
Previous
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