Results 1 to 9 of 9

Thread: Save Data From MSFlexGrid

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Location
    Europe,Croatia,Bjelovar
    Posts
    4

    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!

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    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.

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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:
    1. Private Sub Command6_Click()
    2. '============================
    3. Dim i%, j%, strRowText$
    4.  
    5.     Screen.MousePointer = vbHourglass
    6.     Open App.Path & "\test.txt" For Output As #1
    7.         With FGrid
    8.             For i = 1 To .Rows - 1
    9.                 strRowText = ""
    10.                 For j = 1 To .Cols - 1
    11.                     strRowText = strRowText & .TextMatrix(i, j) & ";"
    12.                 Next j
    13.                 Print #1, strRowText
    14.             Next i
    15.         End With
    16.     Close #1
    17.     Screen.MousePointer = vbDefault
    18.  
    19. End Sub

  4. #4
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    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 Attached Files
    My Blog.

    Ryan Jones.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2005
    Location
    Europe,Croatia,Bjelovar
    Posts
    4

    Smile Re: Save Data From MSFlexGrid

    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
    It's not bad to learn something new

  6. #6
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Save Data From MSFlexGrid

    Here is how you attach a file:
    1. Create a Reply
    2. Scroll down to the Additional Options frame
    3. Click Manage Attachments
    4. Click Browse
    5. Locate your file
    6. Click Upload
    7. Click Close this window
    8. Click Submit Reply
    If you have multiple files, the best thing to do is to create a Zip file and attach that.

  7. #7
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    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
    Rob C

  8. #8

    Thread Starter
    New Member
    Join Date
    May 2005
    Location
    Europe,Croatia,Bjelovar
    Posts
    4

    Re: Save Data From MSFlexGrid

    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
    Attached Files Attached Files
    It's not bad to learn something new

  9. #9
    Junior Member
    Join Date
    May 2007
    Posts
    30

    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
  •  



Click Here to Expand Forum to Full Width