Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out type of value in Excel ?
Message
From
03/02/2006 12:25:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01093406
Message ID:
01093423
Views:
16
This message has been marked as the solution to the initial question of the thread.
>I am converting data from an Excel spreadsheet to a VFP table.
>
>I am using an automation approach, opening the worksheet and extracting data from each cell. But sometimes I run into a problem where the value in a cell is not of a "character" type. For example, I have a column with heading "My Date". The values in this column are:
>1/20/2005
>10/1/2004
>and so on.
>When I get this value in the VFP program it is not a character type, because function CTOD() fails. How do I determine what type it is?
>
>Thank you.

Hi Dimitry,

Just use VFP TYPE() function
? type( 'oXLSheet.Cells[1,1].Value' )
Regards
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform