Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Re: conversion ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 6078 of 6157
Post > Topic >>

Re: conversion de la date en format TDatetime

by "Maarten Wiltink" <maarten@[EMAIL PROTECTED] > Jun 23, 2008 at 02:14 PM

"jg07" <jg07@[EMAIL PROTECTED]
> wrote in message
news:485f8c3f$0$931$ba4acef3@[EMAIL PROTECTED]
> var
> resul:Tsearchrec;
> dat:Tdatetime;
>
> begin
> findfirst('C:\*.*',$01,resul);
> dat:= FileDateToDateTime(resul.time);
> end;
>
> Le compilateur affiche un message d'erreur
> "Exception.....etc...Argument incorrect pour l'encodage de date"

Exceptions happen at runtime, not while compiling.
The types in your code appear to be correct.
Try checking the return code of FindFirst.

Code:=FindFirst(...); if (Code=0) then ...;

Your results may be thrown off by the $01 in the call to FindFirst.
I find it safest to always pass faAnyFile and check the attributes
of the files returned.

Groetjes,
Maarten Wiltink
 




 3 Posts in Topic:
conversion de la date en format TDatetime
"jg07" <jg07  2008-06-23 13:42:11 
Re: conversion de la date en format TDatetime
"Maarten Wiltink&quo  2008-06-23 14:14:19 
Re: conversion de la date en format TDatetime
"alanglloyd@[EMAIL P  2008-06-23 05:19:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:06:27 CDT 2008.