Autor Beitrag
delphijanka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151

WinXP
D 2009 Arc., Java, C
BeitragVerfasst: Fr 11.06.10 14:25 
Hej. In einer Excel-Datei ist die Zeit im Format hh:mm in der Zelle enthalten.
Die möchte ich einlesen. Ein faches Cell[x,y] liefert eine "entsprechende" Dezimalzahl.
Wie lese ich die Zeit in einen String so wie sie steht, also im hh:mm - Format?
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Fr 11.06.10 14:37 
Hi, glaube mit TimeToStr wird es wieder richtig angezeigt!
Beispiel:
ausblenden Delphi-Quelltext
1:
Label1.Caption := TimeToStr(Cell[x,y]);					
Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!