Click to See Complete Forum and Search --> : Open txt file into MSFlexgrid
ant
June 22nd, 2001, 06:34 AM
How do you open a text file into an MSFlexgrid?
The code i thought would work doesn't work
i would really appreaciate a working example
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address
Iouri
June 22nd, 2001, 07:06 AM
What do you mean by opening text file to the msfg. If you think about CSV file then you can create the recordset from it and then load rs to msfg.
Iouri Boutchkine
iouri@hotsheet.com
Ghost308
June 22nd, 2001, 08:38 AM
If that text file is saved so that columns are tabbed out and there are carriage returns for each row, just use Line Input to read in a line at a time, then set the current row in the flexgrid to the string Line Input returns. The tabs in the string will tab between fields in the flexgrid. You'll probably need to configure the number of columns in the grid before inserting any data so either do it at design time if you know your grids are always going to have the same number of columns, or do it at run time based on how many columns there are in the text file.
ant
June 22nd, 2001, 09:40 AM
how do you do that?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.