string; Gegevens Source=“ + strPath +“; Uitgebreide Properties='text; HDR=Yes; FMT=Delimited'";
OleDbConnection conn = nieuwe OleDbConnection (strConn);
conn. Open ();
probeer
{
OleDbCommand comm = nieuwe OleDbCommand („SELECTEER * van [“ + strFilename + „]“, conn);
Gelezen OleDbDataReader = comm.ExecuteReader ();
terwijl (gelezen. Lees ())
{
xdlr = „HL“ + lezen [0] .ToString ();
xname = lees [1] .ToString ();
xaddr = lees [3] .ToString ();
xcity = las [4] .ToString ();
xstate = lees [5] .ToString ();
xzip = lees [6] .ToString ();
xphone = las [7] .ToString ();
xfax = lees [8] .ToString ();
xemail = lees [9] .ToString ();
}
}
|