Results 1 to 3 of 3

Thread: [RESOLVED] [02/03] Column's Datatype question

  1. #1

    Thread Starter
    Lively Member deien's Avatar
    Join Date
    Sep 2007
    Posts
    81

    Resolved [RESOLVED] [02/03] Column's Datatype question

    Hello everyone!

    How do I get/test the datatype of a certain column of a datatable collection?

    Please help me.. thank you
    Deien369
    Computer Programmer
    Accent Micro Technologies, Inc.

    "The more grain a stalk has, the lower it bows; the more knowlege we recieve, the more humble we should become."

  2. #2
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Re: [02/03] Column's Datatype question

    Code:
    Dim myType As Type
    
    'using the column name
    myType = myDataTable.Columns("Surname").DataType
    
    'using the column zero-based index
    myType = myDataTable.Columns(1).DataType

  3. #3

    Thread Starter
    Lively Member deien's Avatar
    Join Date
    Sep 2007
    Posts
    81

    Re: [02/03] Column's Datatype question

    Hey, thanks a lot there buddy!
    Deien369
    Computer Programmer
    Accent Micro Technologies, Inc.

    "The more grain a stalk has, the lower it bows; the more knowlege we recieve, the more humble we should become."

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