Autor Beitrag
Handycommander
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: So 13.02.05 17:07 
Hallo,

ich möchte, wenn in einem Label 1000 (Maximum) dann in einem 2ten Label 0 (Minimum) steht.

Also:

1000 sollte 0 sein
999 sollte 1 sein
998 sollte 2 sein
...

Wie kann ich das machen?

Danke

Tobias
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 13.02.05 17:09 
Ich versteh deine Frage nicht ganz, aber meinst du:

Label2.Caption := IntToStr(1000 - StrToInt(Label1.Caption)); ?

AXMD
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: So 13.02.05 17:15 
Ja genau so meinte ich das.
Doch so simple :roll: