Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5331
| 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 | 2013-06-06 09:55 +0200 |
| 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> |
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