General information
Title:
How I could use the CRVEventInfo in VFP
Hi All,
I'm using RDC integrated with VFP 8. I want to determine what is the field in the reports clicked by the user.
What I want to do is to get the field value and field name of the object click by the user. I can get it correctly in VB using the following could in the Clicked event in the CRViewer ActiveX:
Private Sub CrystalActiveXReportViewer1_Clicked(ByVal x As Long, ByVal y As Long, EventInfo As Variant, UseDefault As Boolean)
Dim objFields As CrystalActiveXReportViewerLib10Ctl.CRVFields
Dim objField As CrystalActiveXReportViewerLib10Ctl.CRVField
Dim objEventInfo As CrystalActiveXReportViewerLib10Ctl.CRVEventInfo
Set objEventInfo = EventInfo
Set objFields = objEventInfo.GetFields
If objFields.SelectedFieldIndex > 0 Then
Set objField = objFields.Item(objFields.SelectedFieldIndex)
Debug.Print objField.Name
Debug.Print objField.Value
End If
End Sub
But in VFP 8 I can't use the above could.
Is anybody there have an idea how to convert this could in VFP 8.
TIA,
Rene
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only