Estimados Programadores suelto este post porque he visto cambios radicales de los ComponentOne de VB6 a .Net es especial el
C1TrueDBGrid por ejemplo yo tengo este codigo para llenar esta grilla
en Vb6
Código:
Dim mxArrArea As XArrayDB - Declaración de Array
Public Sub rTraerDatos(ByVal psSql As String)
Dim lrRs As ADODB.Recordset
Dim objArea As TraTablas.clsAreasQry
Dim lnI As Long
Dim lsCadErr As String
On Error GoTo Errores
Set objArea = New TraTablas.clsAreasQry
lsCadErr = objArea.LeerDatos(psSql, lrRs)
If mxArrArea Is Nothing Then
Set mxArrArea = New XArrayDB
Else
Set mxArrArea = Nothing
Set mxArrArea = New XArrayDB
End If
mxArrArea.ReDim 0, lrRs.RecordCount - 1, 0, cnTipoOperCia
lnI = 0
Do While Not lrRs.EOF
mxArrArea.Value(lnI, 0) = "" & Trim(lrRs!Cia_Id)
mxArrArea.Value(lnI, 1) = "" & Trim(lrRs!Nombre)
mxArrArea.Value(lnI, 2) = "" & Trim(lrRs!Area_Id)
mxArrArea.Value(lnI, 3) = "" & Trim(lrRs!Dpto_Dsc)
mxArrArea.Value(lnI, 4) = mnConsultar
lnI = lnI + 1
lrRs.MoveNext
Loop
[b]Set tdbgArea.Array = mxArrArea
tdbgArea.ReBind[/b] Set objArea = Nothing
Set lrRs = Nothing
Exit Sub
Errores:
Set objArea = Nothing
Set lrRs = Nothing
MsgBox CStr(Err.Number) & " " & Err.Description, vbCritical + vbMsgBoxHelpButton, Me.Caption, Err.HelpFile, Err.HelpContext
End Sub Sin embargo en .Net veo que ya no existe el método
Array, donde se le asigna el arreglo cargado.
Alguien ya habrá investigado como puede ser esto?
Saludos cordiales,