[fpc-pascal]how to convert a string to pppchar

Steve Williams stevewilliams at kromestudios.com
Fri Mar 5 08:57:06 CET 2004


To convert a PPPChar to a String, you should be able to do

  MyString := String(MyPPPChar^^);

To convert from String to PPPChar, you will need some intermediate variables

  MyPChar := PChar(MyString);
  MyPPChar := @MyPChar;
  MyPPPChar := @MyPPChar;

Sly

----- Original Message -----
From: "GongYu" <425009 at sina.com>
To: <fpc-pascal at lists.freepascal.org>
Sent: Friday, March 05, 2004 2:16 PM
Subject: [fpc-pascal]how to convert a string to pppchar


> i defined
> type
>  PPPChar=^PPChar
> end;
>
> now the question is how to convert a string to pppchar or convert a
pppchar to string?
> please help me.





More information about the fpc-pascal mailing list