Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Pas2JS
»
PAS2JS: Error: Not supported: pointer for Name: ^TString;
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
solution for installing F...
by
BradleySlavik
[
Today
at 02:37:22 am]
Lazarus seems to be makin...
by
n7800
[
Today
at 02:33:42 am]
CudaText editor (written ...
by
szlbz
[
Today
at 01:33:54 am]
Embedded qss stylesheets ...
by
jns
[
Today
at 12:43:03 am]
What was your first compu...
by
CM630
[January 13, 2026, 10:09:19 pm]
Dragging files to .app no...
by
Boleeman
[January 13, 2026, 10:06:09 pm]
Drag and Drop Files; onDr...
by
Boleeman
[January 13, 2026, 10:01:00 pm]
PngDrop: Reduce the size ...
by
Boleeman
[January 13, 2026, 09:50:19 pm]
Fantasy Worldbuilder; Pro...
by
Boleeman
[January 13, 2026, 09:45:56 pm]
Lazarus and Libre Office
by
Aruna
[January 13, 2026, 09:26:34 pm]
TSpeedButton qt6 styleshe...
by
big_M
[January 13, 2026, 09:23:24 pm]
StrToDateTime problems
by
Nicole
[January 13, 2026, 07:45:13 pm]
How to forward a Class in...
by
Hartmut
[January 13, 2026, 07:41:31 pm]
Additional Filedialog opt...
by
Hansaplast
[January 13, 2026, 07:39:28 pm]
Linked List Using Two Cla...
by
cdbc
[January 13, 2026, 06:34:17 pm]
set zero values not to b...
by
wp
[January 13, 2026, 05:58:41 pm]
Fast Canvas Library V1.05...
by
Gigatron
[January 13, 2026, 05:15:06 pm]
Locate current record aft...
by
1HuntnMan
[January 13, 2026, 03:52:59 pm]
How to set the Excel cell...
by
wp
[January 13, 2026, 02:10:13 pm]
RPNCalc in Lazarus
by
Thaddy
[January 13, 2026, 01:31:40 pm]
[SOLVED] Transparent back...
by
wp
[January 13, 2026, 11:19:10 am]
Why does FPC behave this ...
by
Thaddy
[January 13, 2026, 10:39:31 am]
Parametrized Access SQL Q...
by
Zvoni
[January 13, 2026, 09:45:53 am]
BS PanelTrans - transform...
by
Xenno
[January 13, 2026, 05:54:55 am]
RTTIPropertyGrid expand
by
jamie
[January 13, 2026, 03:17:43 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: PAS2JS: Error: Not supported: pointer for Name: ^TString; (Read 1003 times)
peter.dell
New Member
Posts: 24
PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
on:
February 18, 2025, 12:07:19 am »
Hello,
The
docu
mentions that pointers as "Supported syntax elements".
But compiling the following program results in "Test.pas(4,5) Error: Not supported: pointer"
Do you have any suggestions on how to fix or work around this?
Code: Pascal
[Select]
[+]
[-]
program
test
;
type
TString
=
string
;
var
Name
:
TString
;
var
PName
:
^
TString
;
begin
WriteLn
(
'Works,'
)
;
end
.
Kind regards, Peter/JAC!
Logged
kagamma
New Member
Posts: 14
Re: PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
Reply #1 on:
February 18, 2025, 04:27:58 am »
The documentation clearly states:
Quote
Pointer (as a reference to a
class
,
array
,
record
,
pointer of record
, or
interface
).
There is no mention of the string type.
Logged
Thaddy
Hero Member
Posts: 18672
Jungle wars. And failing health it seems.
Re: PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
Reply #2 on:
February 18, 2025, 07:11:11 am »
You mean pointer type. Strings are of course supported. Pointers are not.
Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
peter.dell
New Member
Posts: 24
Re: PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
Reply #3 on:
February 18, 2025, 10:30:27 pm »
Thanks. So that also applies then for all pointers to other elementary types.
I was hoping there was an option. For now, I changed the copy to copy/assign the strings.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Pas2JS
»
PAS2JS: Error: Not supported: pointer for Name: ^TString;
TinyPortal
© 2005-2018