Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting Xslx to Xls
Message
De
27/10/2016 11:21:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01642393
Message ID:
01642399
Vues:
40
>>>
>>>I don't know if you can do that with with Excel automation, but if you are importing latest.xls into VFP, that is, as a table, just recreate the column value as a date.
>>>
>>>
>>>ALTER TABLE latest RENAME COLUMN h TO hn
>>>ALTER TABLE latest ADD COLUMN h D
>>>UPDATE latest SET h = hn + {^1899-12-30}
>>>ALTER TABLE latest DROP COLUMN hn
>>>
>>
>>
>>My code is now ALTER TABLE latest RENAME COLUMN h TO hn
>>ALTER TABLE latest ADD COLUMN h D
>>UPDATE latest SET h = hn + {^1899-12-30}
>>ALTER TABLE latest DROP COLUMN hn
>>cancel
>
>
>Sorry I sent the last post too early - it errors on the update line with operator / operand type mismatch

Can you put here the result of DISPLAY STRUCTURE of the latest table?
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform