DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    James Guest

    append with dates


    I am trying to append a converted .dat file into a free table in VFP6. How
    do I get the date fields in the .dat file to import properly into the VFP
    table. It works through the wizard but not through an append. My .dat file
    is delimited by character ! . Right now my date fields have the format mm
    space dd space yyyy. Any advise will be welcomed and appreciated.

  2. #2
    Eric den Doop Guest

    Re: append with dates

    Hello,

    Quick and dirty: create a new date field in your table. After the import has
    finished issue
    REPLACE ALL newdatefield WITH CTOD(strindatefield)

    --
    Eric den Doop
    www.foxite.com - The Home Of The Visual FoxPro Experts

    "James" <james.garza@pcca.com> wrote in message
    news:3b39eb17$2@news.devx.com...
    >
    > I am trying to append a converted .dat file into a free table in VFP6.

    How
    > do I get the date fields in the .dat file to import properly into the VFP
    > table. It works through the wizard but not through an append. My .dat

    file
    > is delimited by character ! . Right now my date fields have the format mm
    > space dd space yyyy. Any advise will be welcomed and appreciated.




  3. #3
    Fred - Armoni Guest

    Re: append with dates

    I disn't test but, if you SET MARK TO space(1) and SET DATE TO MDY
    before the import, maybe it sould help

    Fred

    James a écrit :
    >
    > I am trying to append a converted .dat file into a free table in VFP6. How
    > do I get the date fields in the .dat file to import properly into the VFP
    > table. It works through the wizard but not through an append. My .dat file
    > is delimited by character ! . Right now my date fields have the format mm
    > space dd space yyyy. Any advise will be welcomed and appreciated.


    --
    FE AVP&Cie
    Juillenay, Europe

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links