Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Referencing
Message
From
19/10/1997 18:33:37
Steve Buttress
Steve Buttress Software Consulting
Bloomington, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Object Referencing
Miscellaneous
Thread ID:
00055428
Message ID:
00055428
Views:
65
I need to address a property of an object on an open form, but whcih is NOT the active form from a method of an object on the active form. The VFP Developers guide (V 3.x) on pages 60-63 indicated that the proper referenc is frmFormname.Object.Property. I have been trying to reference the object as follows. frmFormname.pgfParent.Page1.textbox_name.enabled = .F. (or .T. depending on the value of a field). I also tried adding " _Screen" to the hierarchy on the possibility that it is necessary to address the inactive form in this manner.

The code returns an error each time this method it executed, and a refernce in the Debug window to the form and property is blank, indicating that the object being referenced does not exist. If I use the syntax _Screen.ActiveForm.Activecontrol.Value, the object being referenced is found just fine, WHEN it is the ACTIVE object. That not being the case whenIi need to address the object from a different active object, this not the answer.

BTW, I am NOT using a FormSet do that is NOT the answer, lest anyone jump to that conclusion.

I have tried everything I can think of and followed the syntax as carefully as I can from the Developers Guide, but must be reading something wrong. Surely MS wouldn't publish misinformation, would they? <g>

Thanks for any help.

Steve...
Steve Buttress, MCP
ProMatrix MVP - Life
ProSysPlus Developer
Next
Reply
Map
View

Click here to load this message in the networking platform