For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
Valore=Cursor1.GetString("Codice")
Valore2=Cursor1.getstring("Cosa")
Valore2 = Valore2.Replace(Chr(13),"")
Valore2 = Valore2.Replace(Chr(10),"")
Valore3=Cursor1.getstring("Dove")
If Valore2.Length >=30 Then
Valore2=Valore2.SubString2(0,30)&"..."
End If
If Valore3.Length >=39 Then
Valore3=valore3.SubString2(0,39)&"..."
End If
ListaCose.AddTwoLines2(Valore2,Valore3,Valore)
Next
Cursor1.Close