+ Reply to Thread
Results 1 to 2 of 2

Transfer data to FoxPro Table

  1. #1
    Forum Contributor
    Join Date
    04-09-2005
    Location
    Multan. Pakistan
    Posts
    129

    Transfer data to FoxPro Table

    Dear Friends

    I need the code for transfer of data from xl sheet to Foxpro Table.

    Syed Haider Ali
    Last edited by VBA Noob; 01-16-2008 at 04:00 PM.

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Hi:

    I've done a bit of work recently taking a spreadsheet to a FoxPro cursor. I found that the quickest way was to save the spreadsheet as a dbf, but when I did that I lost some of the longer fields (above 30 characters I think). I also had trouble if the first row of spreadsheet data had blank cells - had to fill them with zeros.

    So what I ended up doing was create a blank cursor in vfp (manually, using create table, and specifying all the columns), then using Append from <workbookname> XL8 Sheet '<sheetname>'.

    Some of my problems may have arisen because I was taking the spreadsheet to a cursor rather than a table.

    hth
    Mike
    Last edited by Mikeopolo; 01-16-2008 at 08:26 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1