|
-
March 15th, 2001, 11:00 PM
#1
msflexgrid - to do backup
Please help me with this code ..... the line
msfgrid.ApproxCount - 1 gives an error .....
iFileNumber = FreeFile
Open txtFileName For Output As #iFileNumber
For iNumRows = 0 To msfgrid.ApproxCount - 1
Print #iFileNumber, msfgrid.Columns(0).Text & "|" & msfgrid.Columns(1).Text & "|" & msfgrid.Columns(2).Text & "|" & msfgrid.Columns(3).Text & "|" & _
msfgrid.Columns(4).Text & "|" & msfgrid.Columns(5).Text & "|" & msfgrid.Columns(6).Text & "|" & msfgrid.Columns(7).Text & "|" & _
msfgrid.Columns(8).Text & "|" & msfgrid.Columns(9).Text & "|" & msfgrid.Columns(10).Text & "|" & msfgrid.Columns(11).Text & "|" & _
msfgrid.Columns(12).Text & "|" & msfgrid.Columns(13).Text & "|" & msfgrid.Columns(14).Text & "|" & msfgrid.Columns(15).Text & "|" & _
msfgrid.Columns(16).Text & "|" & msfgrid.Columns(17).Text & "|" & msfgrid.Columns(18).Text & "|" & msfgrid.Columns(19).Text & "|" & _
msfgrid.Columns(20).Text & "|" & msfgrid.Columns(21).Text & "|" & msfgrid.Columns(22).Text & "|" & msfgrid.Columns(23).Text & "|" & _
msfgrid.Columns(24).Text & "|"
DonRafouk
-
March 16th, 2001, 08:11 AM
#2
Re: msflexgrid - to do backup
Instead of
For iNumRows = 0 To msfgrid.ApproxCount - 1
use
For iNumRows = 0 To msfgrid.Rows -1
Iouri Boutchkine
[email protected]
-
March 16th, 2001, 09:11 PM
#3
Re: msflexgrid - to do backup
you are genius Iouri. yup, the code you gave me was good, I can do the backup. but I also did a bit of changes on the 'msfgrid.colums.text &' to 'msfgrid.coldata'
Thanks to the genius ........
P/s :Is there anyway I can buy you lunch?
DonRafouk
-
March 17th, 2001, 11:02 AM
#4
Re: msflexgrid - to do backup
Any time. CAll me if you are in New York
Iouri Boutchkine
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|