Results 1 to 6 of 6

Thread: Can' get MSHFlexGrid Clip Property to work [RESOLVED]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    17

    Resolved Can' get MSHFlexGrid Clip Property to work [RESOLVED]

    I had the clip property working fine on a Win2K machine but as soon as I ran the code on a different machine running XP I was unable to return data from a flex grid using the clip property. I can still fill the grid using the clip property, I just cant read data from the grid anymore using the clip property. I downloaded all the updates from microsoft but am still unable to get it to return data. Does the OS have anything to do with this? Am I still missing a download?

    I would really appreciate any help in this matter. Thank you.
    Last edited by chshiba; Apr 12th, 2005 at 03:29 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Can' get MSHFlexGrid Clip Property to work

    Quote Originally Posted by chshiba
    I had the clip property working fine on a Win2K machine but as soon as I ran the code on a different machine running XP I was unable to return data from a flex grid using the clip property. I can still fill the grid using the clip property, I just cant read data from the grid anymore using the clip property. I downloaded all the updates from microsoft but am still unable to get it to return data. Does the OS have anything to do with this? Am I still missing a download?

    I would really appreciate any help in this matter. Thank you.
    Welcome to the forums.

    My initial reaction to your question about a missing download is No. You probably have whatever you need. There have been numerous questions regarding things that work with Win200x and 98 that, for some reason, don't on XP.

    Anyway, could you post what you are doing. I'm also running XP, and I'd like to give it a go and see what I come up with.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    17

    Re: Can' get MSHFlexGrid Clip Property to work

    The code I use is pretty standard i just select the contents of the flex grid and then assign the return value of the clip property to a string.

    VB Code:
    1. fgd.col = 0
    2. fgd.Row = 1
    3. fgd.ColSel = fgd.Cols - 1
    4. fgd.RowSel = fgd.Rows - 1
    5. str = fgd.Clip
    fgd.clip returns an empty string, but it works find if I assign values to the grid (i.e. fgd.clip = str).
    You mentioned, "There have been numerous questions regarding things that work with Win200x and 98 that, for some reason, don't on XP." Have you ever come across any solutions for those questions?

    Thanks for the reply.

  4. #4
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    Re: Can' get MSHFlexGrid Clip Property to work

    I tried your code and it worked just perfect. I'm using SP4 of MSHFLXGD.OCX and running XP sp2
    live, code and die...

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Can' get MSHFlexGrid Clip Property to work

    This works fine under XP.
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4.   Dim str As String
    5.   With flxgrd
    6.     .Col = 2
    7.     .Row = 2
    8.     .ColSel = 5
    9.     .RowSel = 5
    10.     str = .Clip
    11.   End With
    12.   MsgBox str
    13. End Sub
    14.  
    15. Private Sub Command2_Click()
    16.   With flxgrd
    17.     .Col = 2
    18.     .Row = 2
    19.     .ColSel = 5
    20.     .RowSel = 5
    21.     .Clip = "5" & vbTab & "10" & vbTab & "15" & vbTab & "20"
    22.   End With
    23. End Sub
    24.  
    25. Private Sub Form_Load()
    26.   Dim r%, c%
    27.   With flxgrd
    28.     .Rows = 6
    29.     .Cols = 6
    30.     For r = 0 To 5
    31.       For c = 0 To 5
    32.         .TextMatrix(r, c) = 5 * r + c
    33.       Next c
    34.     Next r
    35.   End With
    36. End Sub

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    17

    Re: Can' get MSHFlexGrid Clip Property to work [RESOLVED]

    Thanks for the help, I hadn't installed the correct VB6 service pack on the XP machine. Thanks for pointing out my stupid mistake.

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