Sub SetFareCount(ByRef l1 as Label, ByRef l2 as Label)
'get some data from db
Dim cur As Cursor
cur = mySQL.ExecQuery("Select SomeField,CustomerID FROM Cust")
If cur.RowCount>0 Then
cur.Position=0 '1st record
l1.Text = cur.getString("SomeField")
l2.Text = cur.getInt("CustomerID")
End Sub