Hy, I'm new here but I understand in VB very good,
can You tell me how to save text from MSFlexGrid!
Printable View
Hy, I'm new here but I understand in VB very good,
can You tell me how to save text 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.
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
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
I would attach you my program but I don't know how.
can you help me how to attach file
so you can help me in developing my program
Here is how you attach a file:
If you have multiple files, the best thing to do is to create a Zip file and attach that.
- 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
Hi,
VB-Helper site has a few example projects.
Here's one -
http://www.vb-helper.com/howto_load_flexgrid.html
Last time I had some problems.
I clicked on Manage Attachments but nothing hapened
Now its OK
this is my program
say if you need help understanding him
what do you want? is it comma or tab separated? maybe i can help you..
send me pm maybe if i can make sense...