Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting long integer into date
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01054948
Message ID:
01054950
Vues:
26
Try
CTOBIN(lcStr, "4RS")
>
>I have a problem convertin data read from a binary file. I have to import these data into a DBF.
>
>Data in the source file where stored by an old DOS based application (may be Pascal or Basic) I know the structure of this file but I have some trouble converting numeric data.
>
>For exemple Date are stored in YYYYMMDD format, as a long (4 bytes)
>
>Exemple :
> ASC(byte1) = 56
> ASC(byte2) = 203
> ASC(byte3) = 49
> ASC(byte4) = 1
>
>This should be converted to a date.... but HOW ??????
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform