bonjour tout le monde
je veux determiner le type des donnes d'un fichier excel et pour cela j'ai utiliser la fonction vartype comme suite
Code vb.net : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 If VarType(range.Cells(0, cCnt)) = "char" And VarType(range.Cells(1, cCnt)) = "char" And VarType(range.Cells(2, cCnt)) = "Char" And VarType(range.Cells(3, cCnt)) = "char" And VarType(range.Cells(4, cCnt)) = "float" Then DGV.Columns.Add(Obj(cCnt).value.ToString, Obj(cCnt).value.ToString) Else MsgBox("types inconvenables")
mais ca fonction pas
merci d'avance
Partager