Event ReportTextLabel.Data (gb.report)
Event Data ( Index As Integer )
This event is raised when the data stored in the control is needed.
-
Index returns the current Index of the control.
You must provide the controls contents by using the
Data property.
Example
Private $hResult As Result
Public Sub _new()
'Read the result from a database table in report _new event
$hResult = db.Exec("SELECT * FROM test")
End
Public Sub ReportTextLabel1_Data(Index As Integer)
'Use Index to move through the result
$hResult.MoveTo(Index)
Last.Data = $hResult!Name
End