Is it possible to pull a control's name from a form property and then use the property value in a form method to refer to the control. Say I create a new property on a form called 'oControlA' and set it = .NULL. and in the the form's Init event enter this code:
THISFORM.oControlA = "txtXX_Name"
Then in a form method, do something like this:
THISFORM.oControlA.Value = ALLTRIM(XXDataBaseField)
Have tried something along these lines and received errors and was if this is possible using VFP6. Would like to create some code in several events without having to know control's name right then.
Dave Whitt
Roanoke, Va
THISFORM.oControlA = "txtXX_Name"
Then in a form method, do something like this:
THISFORM.oControlA.Value = ALLTRIM(XXDataBaseField)
Have tried something along these lines and received errors and was if this is possible using VFP6. Would like to create some code in several events without having to know control's name right then.
Dave Whitt
Roanoke, Va