Results 1 to 5 of 5

Thread: csv and ADO, autoassigning wrong variable types

  1. #1

    Thread Starter
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    csv and ADO, autoassigning wrong variable types

    Hello,

    We have a csv file from another source that we read in using the ADO object. A problem has occured where the ADO is reading in the first few records of song titles as numbers and then not allowing us to read in later records that are obviously going to be strings.

    Does anyone know how we can force the ADO to take all fields in as string and not auto assign field types to numeric values only?

    Thanks
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: csv and ADO, autoassigning wrong variable types

    What is an "ADO object"? ADO is a way of manipulating data. There are objects in ADO, such as a connection object, etc., but never heard of "ADO object".
    Tengo mas preguntas que contestas

  3. #3

    Thread Starter
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: csv and ADO, autoassigning wrong variable types

    You know what I mean. Its an ado connection to a csv file
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: csv and ADO, autoassigning wrong variable types

    Actually he doesn't - there are lots of alternate "ADO objects" you could be using (eg: a Data Control , a Connection, or a Command), and they are noticably different.

    Anyhoo.. in this case it is not relevant, and the answer can be found in this article from Microsoft, in the section titled "I Dozed Off"!

  5. #5

    Thread Starter
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: csv and ADO, autoassigning wrong variable types

    Cool cheers thats exactly what we need

    Its an ADO Connection
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

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