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] Storing multiple strings/numbers in 1 variable?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
GuM
Expert Cheater
Reputation: 0

Joined: 17 Jan 2007
Posts: 185
Location: The Netherlands

PostPosted: Fri Dec 28, 2007 3:49 pm    Post subject: [Delphi] Storing multiple strings/numbers in 1 variable? Reply with quote

Is it possible to store multiple strings/numbers in 1 variable?

For example
If I would make an If statement it would result as true if it was one of the strings/numbers stored in the variable.

So if 'Blabla' is a variable that stores 2 strings; "lolhax" and "lolol".
And I would use this code:
Code:
If Blabla = lolol
then //I want it to go through here
else //Not here
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Fri Dec 28, 2007 4:04 pm    Post subject: Reply with quote

var
s1:string/integer;
begin
s1:=Form1.Edit1.Text / Length(Form1.Edit1.Text) / IntToStr(Form1.Edit1.Text) / StrToInt(Form1.Edit1.Text);
if s1 = {code} then
showmessage('Wow')
else
Application.terminate;
end;
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