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] Help Simple

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
onlyus
Newbie cheater
Reputation: 0

Joined: 27 Aug 2011
Posts: 19
Location: 214214

PostPosted: Sun Aug 28, 2011 12:37 am    Post subject: [Delphi] Help Simple Reply with quote

procedure TForm1.Button1Click(Sender: TObject);
var
Data : cardinal;
Ed : String;
begin
Ed := Edit1.Text;
Data:= inttostr(Ed); // < Error


end;
end.

why error?
Help please

_________________
i'm noob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Unbr0ken
Advanced Cheater
Reputation: 2

Joined: 10 Aug 2011
Posts: 67

PostPosted: Sun Aug 28, 2011 4:24 am    Post subject: Reply with quote

StrToInt instead of IntToStr... (?)

I'm not a delphi coder, but it seems to be the error.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Fri Sep 02, 2011 5:00 pm    Post subject: Reply with quote

Code:
procedure TForm1.Button1Click(Sender: TObject);
var
Data : cardinal;
Ed : String;
begin
Ed := Edit1.Text;
Data:= inttostr(Ed); // < Error


end;
end.


Should be,

Code:

procedure TForm1.Button1Click(Sender: TObject);
var
Data : cardinal; //<- Why Cardinal, Integer would suffice ?
begin
Data := StrToInt(Edit1.Text);
end;
end.


Should produce the desired result without an error.
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