Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How I could use the CRVEventInfo in VFP
Message
From
17/05/2004 21:54:17
Rene Lovino
Bigfoot Global Solutions, Inc
Cebu, Philippines
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
How I could use the CRVEventInfo in VFP
Miscellaneous
Thread ID:
00904777
Message ID:
00904777
Views:
64
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
Map
View

Click here to load this message in the networking platform