Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out type of value in Excel ?
Message
De
03/02/2006 12:25:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01093406
Message ID:
01093423
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform