TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Bob Lawrence
from: Doug Brendish
date: 1996-07-18 13:30:50
subject: Function Move

BL>   The way I got around this was to use null-terminated 
BL> strings and
BL> pointers, which is about three-times as fast as manipulating 
BL> Pascal
BL> strings. If you use a zero-based array (zstr: array[0..255] 
BL> of char;)
BL> this is compatible with a Pchar pointer and you can use the 
BL> Strings
BL> Unit in BP7 to do your manipulation - then convert the final 
BL> array
BL> quickly to a Pascal string with StrPas().

Thanks for the info. I have used arrays for strings when I wanted them to
be manipulated faster than pascal strings but have always converted them to
strings with "for i :=". Knowing there is a function already
there to do it for me is handy. Funny how you can miss something like that
for so long.

Doug.

--- Msgedsq/2 3.10
* Origin: Tir na nOc 066 245944 -=Cead mile failte=- (3:626/667)
SEEN-BY: 633/267 270
@PATH: 626/667 660 711/401 808 50/99 635/544 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.