May 4th, 2005, 10:56 AM
#1
Thread Starter
New Member
Save Data From MSFlexGrid
Hy, I'm new here but I understand in VB very good,
can You tell me how to save text from MSFlexGrid!
May 4th, 2005, 11:08 AM
#2
Re: Save Data From MSFlexGrid
Welcome to VB Forums!
I moved your thread here (and gave it a new subject) since it didn't really belong in the CodeBank. The best way to save data from a flexgrid would probably be to write the data to a file or a database.
May 4th, 2005, 11:10 AM
#3
Re: Save Data From MSFlexGrid
Save to what - ascii (text) file, excel, database, etc ... ?
Here is a sample that saves to a local text file:
VB Code:
Private Sub Command6_Click()
'============================
Dim i%, j%, strRowText$
Screen.MousePointer = vbHourglass
Open App.Path & "\test.txt" For Output As #1
With FGrid
For i = 1 To .Rows - 1
strRowText = ""
For j = 1 To .Cols - 1
strRowText = strRowText & .TextMatrix(i, j) & ";"
Next j
Print #1, strRowText
Next i
End With
Close #1
Screen.MousePointer = vbDefault
End Sub
May 4th, 2005, 11:11 AM
#4
Re: Save Data From MSFlexGrid
Have a look at the attatched file.
It shows how to Saving, Load MSFlexGrid Settings and Data.
I found this and posted it but I did not write it but it may help you
Cheers,
RyanJ
Attached Files
May 5th, 2005, 08:35 AM
#5
Thread Starter
New Member
May 5th, 2005, 10:25 AM
#6
Re: Save Data From MSFlexGrid
Here is how you attach a file:
Create a Reply Scroll down to the Additional Options frame Click Manage Attachments Click Browse Locate your file Click Upload Click Close this window Click Submit Reply If you have multiple files, the best thing to do is to create a Zip file and attach that.
May 5th, 2005, 08:54 PM
#7
Fanatic Member
Re: Save Data From MSFlexGrid
Hi,
VB-Helper site has a few example projects.
Here's one -
http://www.vb-helper.com/howto_load_flexgrid.html
May 6th, 2005, 12:17 AM
#8
Thread Starter
New Member
Jun 6th, 2007, 05:10 PM
#9
Junior Member
Re: Save Data From MSFlexGrid
what do you want? is it comma or tab separated? maybe i can help you..
send me pm maybe if i can make sense...
Last edited by EdShark; Jun 6th, 2007 at 05:54 PM .
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