Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
passing a procedure as argument
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
XLibre, finally and fortu...
by
Fred vS
[
Today
at 06:20:26 am]
TDWEdit
by
dbannon
[
Today
at 06:08:28 am]
Conscious Artificial Inte...
by
microxa
[
Today
at 05:43:41 am]
WEBP, no DLLs
by
Tomxe
[
Today
at 04:04:37 am]
Interesting video
by
Joanna
[
Today
at 03:30:11 am]
How to define a type of ...
by
Fibonacci
[
Today
at 03:22:26 am]
IndySecOpenSSL is now ava...
by
TheMouseAUS
[
Today
at 03:10:23 am]
Discipline your AI coding...
by
440bx
[
Today
at 02:44:06 am]
Version 4.8 was recently ...
by
Ten_Mile_Hike
[
Today
at 01:43:17 am]
Who can explain this ?
by
J-G
[
Today
at 01:02:01 am]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 12:03:13 am]
[New Component] ExtTabCtr...
by
d7_2_laz
[June 10, 2026, 10:52:55 pm]
Trayslate 1.3.0 - Free tr...
by
AlexanderT
[June 10, 2026, 08:12:24 pm]
TShellListView
by
Ed78z
[June 10, 2026, 07:59:41 pm]
[SOLVED] Curious why this...
by
1HuntnMan
[June 10, 2026, 07:53:21 pm]
Toying Pascal Documenting...
by
paule32
[June 10, 2026, 05:22:32 pm]
Gitlab site history date.
by
Fred vS
[June 10, 2026, 05:07:59 pm]
Cursor changes to arrow o...
by
atlatl
[June 10, 2026, 05:02:45 pm]
Sizes and SizeInt
by
440bx
[June 10, 2026, 02:15:13 pm]
how to add a ForEach call...
by
jamie
[June 10, 2026, 12:42:04 pm]
[SOLVED] Watches panel is...
by
CM630
[June 10, 2026, 12:06:33 pm]
How to monitor changes in...
by
Martin_fr
[June 10, 2026, 11:55:18 am]
Printer Info
by
J-G
[June 10, 2026, 11:26:52 am]
Strange Behaviour at Runt...
by
andrew Bubble
[June 10, 2026, 11:19:45 am]
Can I get the position an...
by
CM630
[June 10, 2026, 11:00:33 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: passing a procedure as argument (Read 2140 times)
Nebulix
Newbie
Posts: 4
passing a procedure as argument
«
on:
May 26, 2015, 01:39:48 pm »
I imported a program from Turbo Pascal in which there is a call to a procedure with an other procedure as argument
procedure1 ( procedure2, other arguments);
and I get an error message at compilation :
wrong number of parameters specified for call to procedure2.
Is there a way of fixing that ?
Logged
User137
Hero Member
Posts: 1791
Re: passing a procedure as argument
«
Reply #1 on:
May 26, 2015, 01:49:55 pm »
In fpc you may need a pointer of procedure, so @procedure. Otherwise you could show more/full code for us to get a better idea of the problem. How did you declare procedure1, procedure2 and the pointer type?
Logged
Nebulix
Newbie
Posts: 4
Re: passing a procedure as argument
«
Reply #2 on:
May 26, 2015, 02:27:23 pm »
Sorry, this was a beginners mistake. I just Went to Options/Compiler and checked Turbo Pascal compatible and got ...an other error, I will ask about in a new post
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
passing a procedure as argument
TinyPortal
© 2005-2018