General information
Category:
Object Oriented Programming
Title:
Form A setting properties of Form B
Hello world,
The manual says you can do it but it is not working for me -- what am I doing wrong?
The manual says you can do it, see Using VFP, Programming in VFP, Object-Oriented Programming Concepts, Setting Properties.
In form A, I want to set a property in form B. But if I do it, VFP says Form B is not an object.
Actually, both Form A and Form B are formsets, so the property I want to set is a property of the formset. The manual says you can do that also.
The code not working is this:
IF TYPE( "frsItems" ) = "O" && Items is in use
frsItems.lModelsUpDate = .T. && tell Items that the Models table is updated
ENDIF
The TYPE( "frsItems" ) = "O" test is never true, if I go around it I get the error frsItems is not an object.
Any suggestions?
Also, how do I look at the other forms and formsets open in the debugger? I do not know how.
Thanks,
Rick Graves
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