Autor Beitrag
Munzi
Hält's aus hier
Beiträge: 8



BeitragVerfasst: Do 12.01.06 18:21 
Ich möchte aus einer Zeitangabe die Minuten extrahieren, bzw. würde ich überhaupt gern wissen, wie man mehrere Zeichen aus strings extrahieren kann.

Danke.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 12.01.06 18:26 
Copy, Pos, ... und natürlich für einzelzeichen: VarName[Index]

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 12.01.06 18:27 
Moin und :welcome: im Forum!

Gibt da mehrere Möglichkeiten:
a) mit S[1] kannst du auf das erste Zeichen im String S zugreifen usw.
b) gib mal Copy ein und drück F1 :wink:

Speziell zu deinem Problem: ich würde die Zeitangabe in eine TTime-Wert umwandeln (Stichwort: StrToTimeDef) und dann mit z.B. DecodeTime zerlegen.

cu
Narses

//EDIT: zu spät... :wink: