Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5331
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Karl-Heinz" <invalid@invalid.invalid> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: how to know de time stamp of a file while ffirst return false ? |
| Date | Thu, 6 Jun 2013 09:55:15 +0200 |
| Lines | 43 |
| Message-ID | <b1atjjF5i74U1@mid.individual.net> (permalink) |
| References | <453d0b3f-1bc1-4b25-bc9b-9cfeb9b4da42@googlegroups.com> <konevp$q78$1@speranza.aioe.org> <be4e30bb-57dd-42fe-89bc-7bd4f5ac239a@googlegroups.com> <konvd5$8ds$1@speranza.aioe.org> <d30cc4a3-178b-4094-999b-7d41b8a565f4@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-1"; reply-type=original |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net f63Eu1377qp+XmNdAjMA2gsLWBM6UXWDkjlLOd7NvfrFPLnpA= |
| Cancel-Lock | sha1:x3NDhphGc55R/dsEMto/bE1qjXI= |
| In-Reply-To | <d30cc4a3-178b-4094-999b-7d41b8a565f4@googlegroups.com> |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Newsreader | Microsoft Windows Mail 6.0.6001.18000 |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.1.7600.16807 |
| Xref | csiph.com comp.lang.clipper.visual-objects:5331 |
Show key headers only | View raw
Hi Jean-Luc, > fDate(): > Return the date stamp of the file found by FFCount(), FFirst(), or > FNext(). > > And FFirst says the file is not there ! > Not sure what you finally need: Timestamp or Datestamp ? Anyway, the Func below uses the WIN-API directly and gives you both ;-) BTW. GetFDate() and GetFTime() are VO buildin functions. Regards Karl-Heinz -------------------------------------------------------- FUNCTION GetFileDateTime ( cFileName AS STRING , dDate REF DATE , cTime REF STRING ) AS LOGIC PASCAL LOCAL struFindData IS _winWIN32_FIND_DATA LOCAL hFile AS PTR LOCAL lOK AS LOGIC IF ( hFile := FindFirstFile( String2Psz ( cFileName ) , @struFindData) ) != INVALID_HANDLE_VALUE lOK := TRUE dDate := GetFDate( @struFindData.ftLastWriteTime ) cTime := GetFTime( @struFindData.ftLastWriteTime ) FindClose ( hFile ) ENDIF RETURN lOK
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-05 02:43 -0700
Re: how to know de time stamp of a file while ffirst return false ? "Jamal" <jamal@examples.net> - 2013-06-05 09:38 -0400
Re: how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-05 08:20 -0700
Re: how to know de time stamp of a file while ffirst return false ? "Jamal" <jamal@examples.net> - 2013-06-05 14:18 -0400
Re: how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-05 15:07 -0700
Re: how to know de time stamp of a file while ffirst return false ? "Karl-Heinz" <invalid@invalid.invalid> - 2013-06-06 09:55 +0200
Re: how to know de time stamp of a file while ffirst return false ? dlzc <dlzc1@cox.net> - 2013-06-06 07:20 -0700
Re: how to know de time stamp of a file while ffirst return false ? jls@igsoft.be - 2013-06-07 01:28 -0700
Re: how to know de time stamp of a file while ffirst return false ? dlzc <dlzc1@cox.net> - 2013-06-07 06:59 -0700
Re: how to know de time stamp of a file while ffirst return false ? "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2013-06-10 07:47 +0000
csiph-web