Results 1 to 3 of 3

Thread: MSflexgrid and null values

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    3

    Question MSflexgrid and null values

    I am pull information into a flexgrid through a SQL statement. How do I allow it to accept a null value from the table

    I tried

    Msflexgrid.allowzerolength = true but allowzerolength isn't a property of the msflexgrid can someone please help


    Crystal

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi,
    I usaually use a function to format the data before displaying
    it on the flexgrid.


    Code:
    Function FormatNull(NullData) As String
        If IsNull(NullData) Then
            FormatNull = ""
        Else
            FormatNull = NullData
        End If
        
    End Function
    
    'usage:
    flxContact.textmatrix(1,1)=FormatNull(rsOrg("Url")
    Hope this help
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    FL
    Posts
    258
    You can try it this, by just appending an empty string to the field data...

    flxContact.textmatrix(1,1) = rsOrg("Url") & ""

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