![]() |
AW: Keine minuswerte anzeigen bei Prozentrechnung
Zitat:
Zitat:
Sorry für's OT. |
AW: Keine minuswerte anzeigen bei Prozentrechnung
Zitat:
|
AW: Keine minuswerte anzeigen bei Prozentrechnung
Wie wärs mal damit (nur so hingetippt ohne Überprüfung)?
Delphi-Quellcode:
var
c_ziel, c_Umsatz, c_Prozent: Currency; begin if TryStrToCurr(Monatsziel.Text,c_ziel) and TryStrToCurr(Umsatz.Text,c_umsatz) then begin c_Prozent:= c_ziel/100*40 - c_Umsatz; if c_Prozent >=0 then provi1togo.Caption:= CurrToStrF(c_Prozent, ffGeneral, 2) else provi1togo.Caption:= 'Umsatzziel erreicht'; end else ShowMessage('Geben Sie gültige Werte ein'); end; |
AW: Keine minuswerte anzeigen bei Prozentrechnung
[total offtopic]
“There are two kinds of people in the world, those with loaded guns, and those who dig. You dig.” - Clint Eastwood, 1966, “The Good, The Bad and The Ugly” (Il Buono, il Brutto, il Cattivo) und aus dem gleichen Film: There are two kinds of people in the world, my friend: Those with a rope around the neck, and the people who have the job of doing the cutting. There are two kinds of spurs, my friend. Those that come in by the door; those that come in by the window. [/total offtopic] :wink: |
AW: Keine minuswerte anzeigen bei Prozentrechnung
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:47 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz