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
Using Lazarus to teach In...
by
Nimbus
[
Today
at 10:15:31 pm]
IDE Editor Windows, ident...
by
d7_2_laz
[
Today
at 10:04:35 pm]
Little bit...
by
ASerge
[
Today
at 09:51:32 pm]
CORE-MATH 32bits in Pasca...
by
schuler
[
Today
at 09:32:39 pm]
Lazarus forum incompatibl...
by
Thausand
[
Today
at 07:16:18 pm]
Fpcupdeluxe
by
Thaddy
[
Today
at 06:12:30 pm]
FPC 3.2.4-rc1 available
by
Thaddy
[
Today
at 06:09:54 pm]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 03:55:47 pm]
504 Gateway Timeout
by
Martin_fr
[
Today
at 03:28:06 pm]
Problem with MariaDB and ...
by
OH1KH
[
Today
at 03:26:54 pm]
Feature announcement: Fun...
by
Thaddy
[
Today
at 01:47:33 pm]
Elite Arcade
by
nomorelogic
[
Today
at 01:16:40 pm]
IDE Coolbar
by
staratel20
[
Today
at 01:00:32 pm]
Midi to Wav Converter
by
Thaddy
[
Today
at 12:28:47 pm]
Pure Pascal ZPAQ and ZSTD
by
Tomxe
[
Today
at 11:48:23 am]
AmigaOS can't run program...
by
Trenatos
[
Today
at 11:30:22 am]
Lazarus and FreePascal on...
by
jwdietrich
[
Today
at 10:44:37 am]
Space Duel
by
Tomi
[
Today
at 09:18:22 am]
Call the Llama.cpp dynami...
by
LeP
[
Today
at 09:11:38 am]
Is there a "known good" c...
by
Thaddy
[
Today
at 08:07:46 am]
Can I get the position an...
by
CM630
[
Today
at 07:29:22 am]
Lazarus 4.6 on macOS 10.1...
by
wpostma
[
Today
at 03:30:20 am]
Forums were down, and are...
by
wpostma
[
Today
at 03:26:20 am]
Untitled raycaster game (...
by
flowCRANE
[
Today
at 01:17:56 am]
Change original package o...
by
pmralbuquerque
[April 19, 2026, 07:55:14 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: passing a procedure as argument (Read 2104 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