DanNorris2000
Technical User
I have a form that shows claim information. I have a command button on that form that by clicking will(should) create a new record based on the information in the current record.
* CMDADDSUBCLAIMA.CLICK
*
* Add a new Sub Claim
* Get next sub number for this claim
Select claims2
Store 0 to nNextSub
Locate for claims2.claim = thisform.claim.value
Do while found()
nNextSub = nNextSub + 1
Continue
Enddo
thisformset.newclaimA.clmsub.value = nNextSub
* Go to newclaim screen
thisformset.newclaimA.visible=.T.
thisformset.newclaimA.show
When run, newclaimA form never shows, it stays on the original claims screen. Any thoughts?
Object newclaimA has the following for its activate procedure:
thisformset.newclaima.uw.value = thisformset.form1.pageframe1.page1.uw.value
thisformset.newclaima.uw.refresh()
thisformset.newclaima.ctrprefix.value = thisformset.form1.pageframe1.page1.ctrprefix.value
thisformset.newclaima.ctrprefix.refresh()
THISFORMSET.Visible= .T.
* CMDADDSUBCLAIMA.CLICK
*
* Add a new Sub Claim
* Get next sub number for this claim
Select claims2
Store 0 to nNextSub
Locate for claims2.claim = thisform.claim.value
Do while found()
nNextSub = nNextSub + 1
Continue
Enddo
thisformset.newclaimA.clmsub.value = nNextSub
* Go to newclaim screen
thisformset.newclaimA.visible=.T.
thisformset.newclaimA.show
When run, newclaimA form never shows, it stays on the original claims screen. Any thoughts?
Object newclaimA has the following for its activate procedure:
thisformset.newclaima.uw.value = thisformset.form1.pageframe1.page1.uw.value
thisformset.newclaima.uw.refresh()
thisformset.newclaima.ctrprefix.value = thisformset.form1.pageframe1.page1.ctrprefix.value
thisformset.newclaima.ctrprefix.refresh()
THISFORMSET.Visible= .T.