I have a custom method on a form which instantiates a a container object which in turn has textboxes for user input. I want to validate the user input in the container using business rules from by business object. Everything seems to be working OK, except the container object is instantiated and the program continues to run and doesn't wait for user input.
How can I make the program pause to get user input? I don't want to use a modal popup form. Here's the code that runs to instantiate it:
oBenGenBiz.cHoldCodesForDetails=lcHoldCodes
WITH THISFORM
.NewObject('oCntDetails','cntDetails','BENJWCtrls')
WITH .oCntDetails
=ACOPY(THISFORM.Pageframe_1.Page1.CntLeaves.aDetails,.aHoldValues)
.Left=250
.Top=100 .Visible=.T.
.cntLabelAndText1.Text1.SetFocus()
.DrawIt() && this just replaces some captions
ENDW
ENDW
lcHoldCodes=oBenGenBiz.cHoldCodesForDetails
I want the program ro pause and wait for input, validate it when the user "saves" it by clicking on a commandbutton on the container, THEN continue on. Do I have to use some variation of READ?
Thanks!
Jim Wheelock