Sub btn_click
ProgressDialogShow(Registros & " rows processed")
CallSubDelayed2(Me,"SELECT_update",mymap)
End Sub
Sub SELECT_update(r As Map)
Dim Campos(r.Size) As String, i As Int
Registros=Registros+1
If PrimerRegistro=1 Then
Dim Cabeceras(r.Size) As String
PrimerRegistro=0
g.Initialize(Me,"g")
g.InitializeTable(r.size,0,False)
g.AddToActivity(Activity , 0, 50dip, 100%x, 80%y)
For i = 0 To r.Size-1
Cabeceras(i)=r.GetKeyAt(i)
Next
g.SetHeader(Cabeceras)
End If
For i = 0 To r.Size-1
Campos(i)=r.GetValueAt(i)
Next
G.AddRowAutomaticWidth(Campos)
End Sub