Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / #100008: Parameter for '[func name]' do not match '[UDT name]' at line X

Author
Message
Whopper
22
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 22nd Sep 2003 07:27
I keep getting this compilation error code in the demo version of dbpro.

I have several files, all of which contain a UDT and function to act on that UTD... eg.


Any help much appreciated.
Whopper
22
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 22nd Sep 2003 07:28
[/code]Oops,

Here is the example code...

[code]
Type Obj
ObjType as integer
Model as integer
EndType


function Obj_Make (Self as Obj)
`do something here
endfunction
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2003 11:08
That example compiles (and runs) okay here - are you using #include on your other files ?


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Sep 2003 11:11
I always used to get errors when sending custom types through a function, but that was before P5. Haven't tried recently.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2003 12:54
Have you got P5.1 installed ?


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
APEXnow
Retired Moderator
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 22nd Sep 2003 12:58
<giggle> He's using the demo version


OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2003 15:04
How do you know ? Could be using Patch4.1


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Sep 2003 15:52
Quote: "I keep getting this compilation error code in the demo version of dbpro"


I think that the clue is there somewhere ...
APEXnow
Retired Moderator
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 22nd Sep 2003 16:06
lol, elementary my dear Wotson


OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2003 16:22
true - didn't read that bit.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Whopper
22
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 22nd Sep 2003 18:45
Does that mean that its just a problem with the demo version?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2003 19:00
I would say yes - it works fine in 5.1


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Whopper
22
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 23rd Sep 2003 05:29
OK, I'll check it out when my copy arrives. Thanks for your help.

Login to post a reply

Server time is: 2026-07-25 07:00:43
Your offset time is: 2026-07-25 07:00:43