| View previous topic :: View next topic |
| Author |
Message |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 24, 2007 11:26 am Post subject: possible? |
|
|
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
possible? O_o
|
|
| Back to top |
|
 |
DemonDays! Advanced Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 58
|
Posted: Fri Aug 24, 2007 11:40 am Post subject: |
|
|
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 |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
Posted: Fri Aug 24, 2007 11:47 am Post subject: |
|
|
strncat will do it for you.
_________________
0x7A 0x61 0x72 0x74
TEAM RESURRECTiON |
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Sat Aug 25, 2007 10:11 pm Post subject: |
|
|
| if its Popsicle its possible (that means yes =P)
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Aug 26, 2007 2:45 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25820 Location: The netherlands
|
Posted: Sun Aug 26, 2007 7:37 am Post subject: |
|
|
.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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Aug 26, 2007 8:20 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25820 Location: The netherlands
|
Posted: Sun Aug 26, 2007 10:56 am Post subject: |
|
|
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 |
|
 |
|