Jonathan Mora wrote:
> "string" is compatible with Ansi strings. You simply
> do a typecast.
> 
> P := PAnsiChar(Copy(S, 1, 1))

Note that P will only be valid until the current function returns. P 
points to a compiler-allocated temporary string.

If a line like that is within a loop, then P will only be valid until 
the next time that line executes; the compiler only allocates one 
temporary to use across all iterations of a loop.

-- 
Rob


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to