Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7/Excel Bug
Message
From
28/11/2001 10:31:13
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
27/11/2001 15:46:36
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00586616
Message ID:
00586971
Views:
23
George,

That is good to know ahead of time. Some might argue that returning .NULL. is a more correct result than "". That brings the question of backwards-compatability versus correcting old bugs into light.

- Keith

>It seems that an empty cell in an Excel spreadsheet returns different values, depending on whether it's being read from VFP7 or VFP6.
>
>STEPS TO REPRODUCE:
>I created a c:\test.xls with nothing in cell A1.
>
>Then, I ran the following program:
>
LOCAL XLApp, x, lcFileName
>
>lcfilename = 'c:\test.xls'     && Your filename here.
>
>XLApp = CreateObject('Excel.application')
>XLApp.WorkBooks.Open(lcFileName)
>
>x = xlapp.workbooks(1).sheets(1).cells(1, 1).value
>=messagebox(vartype(x))
>
>XLApp.quit()
>
>
>RESULTS:
>I get "C" in VFP6, and "X" (.NULL.) in VFP7.
>
>EXPECTED RESULTS:
>Same in both VFP6 and VFP7 [Should remain C(0), not be changed to .NULL.]
>
>- George
Previous
Reply
Map
View

Click here to load this message in the networking platform