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 


possible?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 24, 2007 11:26 am    Post subject: possible? Reply with quote

is this possible to cut text in the middle?
i mean like
if the text in the edit box is "Hello" so can i cut the "H" and "ello" or few letters like "Hel" "lo"???
so i can type
Code:
H
ello


possible? O_o
Back to top
View user's profile Send private message
DemonDays!
Advanced Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 58

PostPosted: Fri Aug 24, 2007 11:40 am    Post subject: Reply with quote

using array.

char Word[4] = "Hello";

so it will be :
[0][1][2][3][4]
==========
|H|E |L |L |O|
==========

so. char [0] will display "H".
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Fri Aug 24, 2007 11:47 am    Post subject: Reply with quote

strncat will do it for you.
_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Sat Aug 25, 2007 10:11 pm    Post subject: Reply with quote

if its Popsicle its possible (that means yes =P)
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Aug 26, 2007 2:45 am    Post subject: Reply with quote

umm so how can i use the arrays..? like i want it to be copied and pasted in a memo or a rich edit as
"H
ello"
so i add a var of array [0..Word Length or..?] of string?
but i want that ComboBox1 or EditBox1.text would be Hello so in a rich edit it would be
H
ello
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25820
Location: The netherlands

PostPosted: Sun Aug 26, 2007 7:37 am    Post subject: Reply with quote

.text is a string
a string goes from 1 to stringlength
to read and write the first character use .text[1] , 2nd char = .text[2]

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Aug 26, 2007 8:20 am    Post subject: Reply with quote

thx! it works!
only 1 problem =(
how can i copy the rest without the h? i tried
Edit1.Text[2..Length1] while length1 is Length(Edit1.Text) but it finds an error becuase the dots .. so how do i copy the ello now?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25820
Location: The netherlands

PostPosted: Sun Aug 26, 2007 10:56 am    Post subject: Reply with quote

newstring:=newstring+copy(edit1.text,2,length1);

or somethign like it, look up in the helpfile

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
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