Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Trouble converting PChar to String
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
KOL4 Beta available.
by
Thaddy
[
Today
at 10:14:44 am]
docking IDE
by
Paolo
[
Today
at 10:13:26 am]
Putting a new file on a w...
by
J-G
[
Today
at 10:10:54 am]
Slow app start on M5 MacB...
by
pleumann
[
Today
at 10:02:28 am]
GTK3 is now the default w...
by
zeljko
[
Today
at 09:49:49 am]
[SOLVED] BitBtn Oddity
by
Petrus Vorster
[
Today
at 09:05:55 am]
Engineering Software from...
by
cdbc
[
Today
at 08:40:08 am]
Difference between @ and ...
by
paule32
[
Today
at 08:18:43 am]
Lazarus Bugfix Release 4....
by
papillon33
[
Today
at 08:15:45 am]
Many recent books on Laza...
by
Khrys
[
Today
at 06:35:48 am]
Lazarus Main not building...
by
dsiders
[
Today
at 03:16:27 am]
Isn’t this funny?
by
n7800
[July 16, 2026, 11:57:09 pm]
Error when opening a proj...
by
Tomu
[July 16, 2026, 09:11:54 pm]
Is this safe, changing fr...
by
mas steindorff
[July 16, 2026, 08:46:31 pm]
TPeriodicTable
by
wp
[July 16, 2026, 08:00:38 pm]
Windows 2026_7 update and...
by
Martin_fr
[July 16, 2026, 07:46:38 pm]
try/except error
by
toby
[July 16, 2026, 06:55:42 pm]
How to connect to MariaDb...
by
Thaddy
[July 16, 2026, 05:51:17 pm]
Computers sure have come ...
by
Zvoni
[July 16, 2026, 03:36:38 pm]
KOL x64
by
Thaddy
[July 16, 2026, 02:06:48 pm]
Install new .deb over exi...
by
dbannon
[July 16, 2026, 01:45:27 pm]
FastCGI vs. CGI
by
egsuh
[July 16, 2026, 12:45:05 pm]
Solpage
by
munair
[July 15, 2026, 01:47:30 pm]
Need help with fphttpserv...
by
Thaddy
[July 15, 2026, 12:58:30 pm]
Freepascal
by
Thaddy
[July 15, 2026, 12:39:23 pm]
« previous
next »
Print
Pages:
1
[
2
]
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]
[+]
[-]
var
a
:
PChar
=
'test'
;
b
:
String
;
begin
b
:
=
a
;
writeln
(
b
)
;
end
.
That's the conversion...
«
Last Edit: June 27, 2020, 08:54:02 am by Thaddy
»
Logged
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.
Here sample project very clear.
«
Last Edit: July 08, 2026, 06:04:26 pm by DavidTh30
»
Logged
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Trouble converting PChar to String
TinyPortal
© 2005-2018