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.

Author
Message
General Lee
23
Years of Service
User Offline
Joined: 15th May 2003
Location:
Posted: 16th May 2003 12:45
Can anyone share with me tutorials or source code about list(dynamic array) ?
I don't find anything about them and the help from DarkbasicPro don't explain well how to use them ( how to insert an item,how to delete,how to scan ...).

thx and excuse for bad english [b])
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 16th May 2003 13:34
I think there are some examples in the examples directory (not much help if you have the demo).

Some of the commands are a bit buggy, so watch out there...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
General Lee
23
Years of Service
User Offline
Joined: 15th May 2003
Location:
Posted: 16th May 2003 14:20
I'have post the code for a simple particel system porting from a Blitz3d example.
I want to compare the speed of the 2 programs.

But seems that the command array index to top p(0) and next array index p(0) don't function well

Can anyone help me?

General Army Corps Robert E. Lee
Army of North Virginia (1861-1865)
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th May 2003 16:04
No, your making a few small mistakes is all. When you're accessing items in the array using the 'index' you don't specify a number inside the brackets.

So instead of using this:
p(0).X=pX

Use this:
p().X=pX

and it should work. I would try and show you corrected code, but I don't have my laptop with me at the moment.
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th May 2003 16:48
I agree, ignore the online help in DBPro that claims you need a zero in the brackets, its rubbish! IanM is correct (as usual). I found out by trial and error.

Gronda, Gronda
General Lee
23
Years of Service
User Offline
Joined: 15th May 2003
Location:
Posted: 16th May 2003 20:39
Thx all, now it function well



General Army Corps Robert E. Lee
Army of North Virginia (1861-1865)

Login to post a reply

Server time is: 2026-07-11 12:03:02
Your offset time is: 2026-07-11 12:03:02