Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
array of array of TPoint
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
Difference between @ and ...
by
DavidTh30
[
Today
at 07:58:00 am]
Is this safe, changing fr...
by
Thaddy
[
Today
at 07:27:57 am]
try/except error
by
Thaddy
[
Today
at 07:23:48 am]
How to connect to MariaDb...
by
Thaddy
[
Today
at 07:18:13 am]
docking IDE
by
kapibara
[
Today
at 04:20:33 am]
Many recent books on Laza...
by
Martin_fr
[
Today
at 12:16:01 am]
Isn’t this funny?
by
Joanna
[
Today
at 12:04:29 am]
Error when opening a proj...
by
Tomu
[July 15, 2026, 09:36:13 pm]
Slow app start on M5 MacB...
by
Thaddy
[July 15, 2026, 03:36:57 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]
Lazarus interface to Rexx...
by
Thaddy
[July 15, 2026, 12:38:10 pm]
Parsing error?
by
Thaddy
[July 15, 2026, 12:02:02 pm]
is there PDS reader/expor...
by
cdbc
[July 15, 2026, 10:55:30 am]
Peculiarities in the EXE ...
by
marcov
[July 15, 2026, 09:57:51 am]
Conscious Artificial Inte...
by
schuler
[July 14, 2026, 11:40:27 pm]
Lazarus Bugfix Release 4....
by
Martin_fr
[July 14, 2026, 10:55:23 pm]
equivalent to C/C++ "offs...
by
Thaddy
[July 14, 2026, 07:37:23 pm]
LazSWatch - a serial port...
by
CM630
[July 14, 2026, 06:11:52 pm]
MarcoV, please contact. ...
by
jbthiel
[July 14, 2026, 05:35:26 pm]
lazbuild vs IDE: PPU chec...
by
Martin_fr
[July 14, 2026, 05:30:50 pm]
OpenDocument('Filename') ...
by
cdbc
[July 14, 2026, 12:45:35 pm]
TCollection wiki entry
by
Thaddy
[July 14, 2026, 10:56:03 am]
Install new .deb over exi...
by
Thaddy
[July 14, 2026, 07:16:45 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: array of array of TPoint (Read 748 times)
BubikolRamios
Sr. Member
Posts: 397
array of array of TPoint
«
on:
March 10, 2024, 09:21:42 pm »
What is that I don't see. Does not work.
Code: Pascal
[Select]
[+]
[-]
var
Points_Polybezier
:
array
of
array
of
TPoint
;
P1
:
TPoint
;
begin
setLength
(
Points_Polybezier
,
0
,
4
)
;
P1
:
=
Point
(
100
,
0
)
;
Points_Polybezier
[
0
]
[
0
]
.
x
:
=
3
;
Points_Polybezier
[
0
]
[
0
]
.
y
:
=
4
;
Points_Polybezier
[
0
]
[
0
]
:
=
P1
;
Points_Polybezier
[
0
]
[
1
]
:
=
Point
(
100
,
0
)
;
Points_Polybezier
[
0
]
[
2
]
:
=
Point
(
100
,
0
)
;
Points_Polybezier
[
0
]
[
3
]
:
=
Point
(
100
,
0
)
;
Logged
lazarus 3.2-fpc-3.2.2-win32/win64
Fibonacci
Hero Member
Posts: 1028
Behold, I bring salvation - FPC Unleashed
Re: array of array of TPoint
«
Reply #1 on:
March 10, 2024, 09:23:22 pm »
SetLength to 0 might be a problem, change it to 1.
Logged
FPC Unleashed
: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more.
Star on GitHub
⭐
BubikolRamios
Sr. Member
Posts: 397
Re: array of array of TPoint
«
Reply #2 on:
March 10, 2024, 09:24:35 pm »
That was fast. Thanks.
Logged
lazarus 3.2-fpc-3.2.2-win32/win64
Thaddy
Hero Member
Posts: 19423
Glad to be alive.
Re: array of array of TPoint
«
Reply #3 on:
March 10, 2024, 09:26:01 pm »
Then 4 may be a problem too. Set it to 5
Logged
Any "programmer" that knows only one programming language is not a programmer
PawelO
New Member
Posts: 31
Re: array of array of TPoint
«
Reply #4 on:
March 11, 2024, 01:28:20 am »
Indexes 0 to 3 are used, so length 4 is ok.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
array of array of TPoint
TinyPortal
© 2005-2018