Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC() Not Consistent with Data Types
Message
From
27/06/2011 15:34:34
 
 
To
27/06/2011 14:24:34
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01516317
Message ID:
01516333
Views:
62
>I am gathering data from an Excel 2010 workbook into VFP 9 SP2 using ODBC via SQLSTRINGCONNECT(). The cursor created by SQLEXEC() creates two columns of data (among many other columns) that should be of the same data type, but one is coming into VFP as data type "B" (double) and the other as data type "M" (Memo). The double field is causing me to loose the character data that also resides in the column.
>
>When I look at the data with Excel, the cells in both columns are General fields. The first record contains column headers that start with letters ("Pin1" and "Pin2"). I have tried changing the data in the second record from numeric to alpha but it doesn't seem to make any difference.
>
>My assumption is that the problem is somewhere in the Excel file, but I can't see where there is any difference between the two columns.

Excel 10...
I usually append from xl5 into a cursor pre-created to my definitions.
AFAIR saving to Excel can be done via automation, in my work I do this often by hand...

If you have oodles of sheets, import into memo always and program from there.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform