Autor Beitrag
Roboman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 115

WinXP
Delphi 2005 Prof.; Delphi 6 Prof.; C++; C; Basic
BeitragVerfasst: Fr 20.11.09 08:52 
Hallo Leute,

habe jetzt seit längerem nicht mehr programmiert.... und wohl alles verlernt... ne quatsch stehe total auf dem Schlauch
und weiß nicht warum..

Ich möchte ein Edit-Feld auslesen in dem 5000 drin steht. Diesen Wert möchte ich einem Timer übergeben.

Timer_IVC3D.Interval:=strtoint(Edit_Interval);

Wo liegt das Problem, stehe total auf dem Schlauch warum der das nicht macht......

Bin dankbar für jede Hilfe....
giantdwarf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35


Delphi 5, Delphi 2006 Prof, Delphi 2009
BeitragVerfasst: Fr 20.11.09 08:57 
Timer_IVC3D.Interval:=strtoint(Edit_Interval.text);

oder du verwendeste StrToIntDef(Edit_Interval.text, 0). Der funktioniert auch, wenn im Edit Mist drin steht und du kannst einen Default-Wert mitgeben
Roboman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 115

WinXP
Delphi 2005 Prof.; Delphi 6 Prof.; C++; C; Basic
BeitragVerfasst: Fr 20.11.09 09:02 
Danke dir, peinlich, bo ey der Balken ist mal wieder riesig.

Danke dir....