DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Accessing multiple flexgrid objects

  1. #1
    Join Date
    May 2005
    Posts
    7

    Accessing multiple flexgrid objects

    I am trying to manipulate multiple flexgrid objects with a single reusable piece of code but am not having much luck. My hope is to set these 4 properties, then paste pre-formatted data using the msflexgrid.clip function and speed coding, is this possible?

    I thought that I should do it like this:

    Code:
    Private Sub SelectGrid (MyFlexgrid as msflexgrid,r1 as integer,c1 as integer, _
         r2 as integer,c2 as integer)
    
         with MyFlexGrid
              .Row=r1
              .Col=c1
              .Rowsel=r2
              .Colsel=c2
         End With
    End sub
    but it does not seem to work

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    strange, there is nothing wrong with your code.
    This works perfectly fine to change a selection of two columns by three rows:

    Code:
        SelectGrid MSFlexGrid1, 2, 1, 4, 2
        MSFlexGrid1.Clip = _
            "a" & vbTab & "b" & vbCrLf & _
            "c" & vbTab & "d" & vbCrLf & _
            "1" & vbTab & "2"
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  3. #3
    Join Date
    May 2005
    Posts
    7
    When I try it as coded, nothing happens (Nothing is written to the flexgrid). Using the long method to manually set row, col, etc.. works.

Similar Threads

  1. Replies: 10
    Last Post: 05-15-2005, 06:14 AM
  2. Accessing DOM Objects
    By nandoo in forum Web
    Replies: 0
    Last Post: 05-03-2005, 07:26 AM
  3. Replies: 1
    Last Post: 09-17-2002, 06:29 AM
  4. Replies: 1
    Last Post: 01-24-2001, 01:50 AM
  5. Accessing Multiple database backends
    By Steven Reid in forum VB Classic
    Replies: 1
    Last Post: 08-12-2000, 09:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center