Questo topic e' stato chiuso dal moderatore.
20/05/09 16:31
Alfonso
Salute a tutti
In vb6 nella form1 ho una label1(0) che in esecuzione si moltiplicherà con l'istruzione:
Aggiungi(1)
Aggiungi(2)
------------------------------------
Private Sub Aggiungi(ByRef N As integer)
Carica(gDes(N))
End sub
------------------------------------
Private Sub Carica(c As Control)
Load c
c.Visible = True
c.Top = xxx
c.BackColor = vbWhite
c.Caption = ""
End Sub
************** in vb8
gDes è il Compatibility.Vb6.LabelArray creato da vb8 nella conversione
_gDes_0 è il nome della prima label
tralasciando la sub Carica
Private Sub Aggiungi(ByRef N As short)
Dim gDes(n) as new label ' da errore: new non può essere usato con array
Dim gDes(n) as new gDes ' da errore: Tipo gDes non definito
End Sub
Un suggerimento. Grazie
In vb6 nella form1 ho una label1(0) che in esecuzione si moltiplicherà con l'istruzione:
Aggiungi(1)
Aggiungi(2)
------------------------------------
Private Sub Aggiungi(ByRef N As integer)
Carica(gDes(N))
End sub
------------------------------------
Private Sub Carica(c As Control)
Load c
c.Visible = True
c.Top = xxx
c.BackColor = vbWhite
c.Caption = ""
End Sub
************** in vb8
gDes è il Compatibility.Vb6.LabelArray creato da vb8 nella conversione
_gDes_0 è il nome della prima label
tralasciando la sub Carica
Private Sub Aggiungi(ByRef N As short)
Dim gDes(n) as new label ' da errore: new non può essere usato con array
Dim gDes(n) as new gDes ' da errore: Tipo gDes non definito
End Sub
Un suggerimento. Grazie
aaa