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.

Newcomers DBPro Corner / Strange Function Error

Author
Message
Dreq934
20
Years of Service
User Offline
Joined: 15th Dec 2003
Location: SC, USA
Posted: 11th Aug 2004 15:04 Edited at: 11th Aug 2004 15:16
Figured it should be posted here -_-



When called like this:

it gives the error:
Quote: "Variable 'Model' does not exist on line 24."

Which is the the line where the LINE function sits..

This is how TestModel is created:


Any ideas? I think I got a little too much C++ in my blood

If I've got it all wrong.. is there a straight-foward way to use dynamic arrays? I was hoping I wouldn't have to go memblock crazy again

Dark Basic Professional
Dreq934
20
Years of Service
User Offline
Joined: 15th Dec 2003
Location: SC, USA
Posted: 11th Aug 2004 15:18
Crap..

Well I found an effective way to crash DBPro


Dark Basic Professional
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th Aug 2004 22:49
You can't pass arrays to/from functions like that.

You can do some nasty stuff with my Array plug-in that can simulate it, but I really wouldn't advise it.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 11th Aug 2004 23:16
Also in that case the TestModel array is global so can be referenced inside the array. If you want it to work on a different array depending on where it's called (Which i've done a couple of times) i'd do something like this:



Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"

Login to post a reply

Server time is: 2024-11-27 06:43:38
Your offset time is: 2024-11-27 06:43:38