fiogf49gjkf0d SLX 6.2
I have a form which I launched via the code below
Set objMainView = Application.MainViews.AddEx("System:XYZ", 0, False, 1, "", "") objMainView.Caption ="Cancel ABCD" objMainView.ShowModal
On the AXFormOpen event of the XYZ, I needed to capture the value for the 'objMainView.Caption' set above. I tried using the code below ....
Set frm = application.Forms("System:Confrim Exam Seat")
If frm.Caption = "Cancel ABCD" Then
..... DO SOMETHING
End If
but was returning 'Form' as value to me instead of "Cancel ABCD"
Please, what do I need to do to get this value ?
Many Thanks |