Page 1 of 1
Special replace string problem
Posted: Sat Feb 12, 2005 11:53 pm
by willib
Hi Pure freaks
I want to change the Data of a string like
change stringposition 6 o "Z"
the only way I see is to code
Code: Select all
a.s="1234567890"
a.s=Left(a.s,5)+"Z"+Right(a.s,4)
Debug a"
isn`t here an easier way to do this , maybe with poke ?!?
Best regards.
Willib
Re: Special replace string problem
Posted: Sun Feb 13, 2005 12:07 am
by traumatic
willib wrote:maybe with poke ?!?
like PokeB(@a+5, 'Z') ?
Can't see a use in this though

Posted: Sun Feb 13, 2005 12:14 am
by blueznl
a.s="1234567890"
PokeB(@a+5,'Z')
Debug a
Posted: Sun Feb 13, 2005 12:15 am
by blueznl
darn traumatic was faster...
Posted: Sun Feb 13, 2005 12:27 am
by willib
Many thanks
Is it sure that a string is always successively in Storage.
ore are there any restrictions ?
best regards
Willib
Posted: Sun Feb 13, 2005 11:03 am
by blueznl
yes
Posted: Sun Feb 13, 2005 11:14 am
by thefool
but if you poke outside the string your program may crash or something else will happen.. [dont worry 'bout your windows, as the program memory space is protected.. to poke outside your program you need some api commands..]
Posted: Sun Feb 13, 2005 7:27 pm
by eevee
Where were you lot when I needed you?????????
viewtopic.php?t=13810

Posted: Sun Feb 13, 2005 8:04 pm
by traumatic
eevee wrote:Where were you lot when I needed you?????????
huh?
Posted: Sun Feb 13, 2005 9:04 pm
by blueznl
it's all in asking the *right* question

Posted: Sun Feb 13, 2005 9:15 pm
by eevee
Or perhaps in the right board??????????