| Autor |
Beitrag |
Marco D.
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 06.08.06 19:49
Delphi-Quelltext 1: 2:
| FAlphaBlend := true; showmessage(booltostr(FAlphaBlend)); |
Warum gibt man mir '-1'(false) aus?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
zuma
      
Beiträge: 660
Erhaltene Danke: 21
Win XP, Win7, Win 8
D7 Enterprise, Delphi XE, Interbase (5 - XE)
|
Verfasst: So 06.08.06 19:57
probier doch mal :
Delphi-Quelltext 1: 2: 3: 4: 5:
| FAlphaBlend := true; if FAlphaBlend then showmessage('An') else schowmessage('Aus'); |
ist FAlphaBlend dann auch auf aus, ist zumindest booltostr() nicht fehlerhaft.
ansonsten setz mal ein
Application.ProcessMessages;
zwischen die beiden Zeilen.
Mehr fällt mir dazu auch nicht ein
Moderiert von Christian S.: Delphi-Tags hinzugefügt
_________________ Ich habe nichts gegen Fremde. Aber diese Fremden sind nicht von hier! (Methusalix)
Warum sich Sorgen ums Leben machen? Keiner überlebts!
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 06.08.06 20:00
 Jetzt gibt er 'An' aus.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
zuma
      
Beiträge: 660
Erhaltene Danke: 21
Win XP, Win7, Win 8
D7 Enterprise, Delphi XE, Interbase (5 - XE)
|
Verfasst: So 06.08.06 20:04
Also, booltostr überprüfen ...
oder einfach mal statt nur compilieren "Projekt erzeugen" anklicken ...
(hilft manchmal bei meinem D7)
_________________ Ich habe nichts gegen Fremde. Aber diese Fremden sind nicht von hier! (Methusalix)
Warum sich Sorgen ums Leben machen? Keiner überlebts!
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 06.08.06 20:06
Deine Signatur trifft voll zu im Augenblick.
Gut, es ist true. Aber später auf einmal false, obwohl ich nichts geändert habe (davon gehe ich zumindest aus...).
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
evilsoft.de
      
Beiträge: 39
XP
Delphi 7
|
Verfasst: So 06.08.06 20:12
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 06.08.06 20:21
Ich habe die Variable in einer Procedure ALphaBlend genannt und Delphi ging davon aus, ich meinte Form1.AlphaBlend. Das ist natürlich false.  Muss ich eben in AlphaBlending umbenennen.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 06.08.06 20:31
Ich danke euch trotzdem für eure Hilfe!
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|