Hi Haydn, thank for your time.
I am trying to recover name or value of a field.
In a vfp form: (olecontrol1 = Crystal Report Viewer Control)
*!* commandbutton "PREVIEW" click
ocrr = Createobject("CrystalRuntime.application")
orpt = ocrr.openreport("C:\report\prova8.rpt")
thisform.olecontrol1.ReportSource=orpt
thisform.olecontrol1.ViewReport
*!* olecontrol1.clicked
*** ActiveX Control Event ***
LPARAMETERS x, y, eventinfo, usedefault
oEventinfo = eventinfo
oFields = oEventinfo.getfields() -> OLE ERROR
*** oEventinfo does not seem to be a valid vfp object
oField = oFields.item(oFields.SelectedFieldIndex)
? oField.name
? oField.value
Thank !
franco
francofelosi@acut.it