"string" is compatible with Ansi strings. You simply
do a typecast.
P := PAnsiChar(Copy(S, 1, 1))
--- Roberto Freitas <[EMAIL PROTECTED]>
wrote:
> Hi, I supose it's something very easy, but I realy
> don't known how to
> do it.
> P is a PAnsiChar variable and S is a String
> variable.
> This sentence is fine:
> S := P;
> But the inverse sentence is not:
> P := S;
> (I get a compiler error message: Incompatible types:
> 'String'
> and 'PAnsiChar')
> So, I try another track. It's possible to do:
> P^ := '0';
> But it's not possible to do:
> for i := 1 to Length(S) do
> P^ := Copy(S, i, 1);
> Conclusion: I need to append S to P but I don't
> known how to do it.
> Can somebody help me?
>
>
>
>
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
------------------------ 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/