Recent

Author Topic: Trouble converting PChar to String  (Read 5051 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 19433
  • Glad to be alive.
Re: Trouble converting PChar to String
« Reply #15 on: June 27, 2020, 08:51:33 am »
In general a Pchar can simply be assigned to a string
Code: Pascal  [Select][+][-]
  1. var
  2.   a: PChar = 'test';
  3.   b: String;
  4. begin
  5.   b := a;
  6.   writeln(b);
  7. end.
That's the conversion...
« Last Edit: June 27, 2020, 08:54:02 am by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

DavidTh30

  • New Member
  • *
  • Posts: 19
Re: Trouble converting PChar to String
« Reply #16 on: July 05, 2026, 07:08:03 am »
Solve my own problem.   :D :D :D
Here sample project very clear.

« Last Edit: July 08, 2026, 06:04:26 pm by DavidTh30 »

 

TinyPortal © 2005-2018