Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Delphi 7, requesting assistance please...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Sat May 09, 2009 7:17 pm    Post subject: Delphi 7, requesting assistance please... Reply with quote

What would be a code that would do this:
Code:
If (Checkbox1.Checked := False) then
  SpamToggle.Checked := False;


I need the SpamToggle to be un-checked if the CheckBox1 is un-checked and vise-versa please.....
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat May 09, 2009 7:51 pm    Post subject: Reply with quote

:= is assignment
= is comparison.


take a guess what is wrong there
Back to top
View user's profile Send private message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Sat May 09, 2009 8:32 pm    Post subject: Reply with quote

slovach wrote:
:= is assignment
= is comparison.


take a guess what is wrong there


Well I tried this code:
Code:
If (Checkbox1.Checked = False) then
  SpamToggle.Checked := False;
and it will run, the only problem is that its not doing what I need it to. Any other suggestions?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun May 10, 2009 2:20 am    Post subject: Reply with quote

Code:
If Checkbox1.Checked = False then
Begin
SpamToggled.Checked := False;
End; //not even sure if begin / end are needed since there is only one line?



I don't know delphi syntax, but this is probably right.


if you're still having trouble, then rethink where / how you're trying to check this.
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sun May 10, 2009 2:58 am    Post subject: Reply with quote

slovach is right.
and yes you only need begin/end if it's more than one line.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites