Autor Beitrag
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Mi 31.12.03 11:21 
Hallo Leute !

ich habe ein maskedit und eine dantenbank,in der datenbank steht im Feld Zeit der wert "134900" was bedeutet 13:49:00 !
Wie übertrage ich das in maskedit ?
mit....
ausblenden Quelltext
1:
MaskEdit_Zeit.EditText := TTLast.FieldValues['Zeit'];					

.... überschreibt er alles,also da steht dann "134900" und nicht "13:49:00"
Wie mache ich das ??

Jagg
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 31.12.03 12:26 
Hallo,
wie wär´s damit?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
 s: string;
begin 
 s := TTLast.FieldValues['Zeit'];
 MaskEdit_Zeit.EditText := s[1]+s[2]+':'+s[3]+s[4]+':'+s[5]+s[6];
end;
Geht natürlich auch mit Copy, ist mir aber zu aufwendig :wink:

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)