Here is a guide which demonstrates how to use and optimize data to be saved to disk or be sent over a network. Find out the size of data types, how to store more than one property in the smallest datatype available and how to use binary expressions. The article features a data size knowledge test.
Visit page one of the guide
Disclaimer: If you know DBPRO like the back of your hand, and you work for Microsoft during the weekdays and you can produce a fully working Super Mario level 7 minutes, and you can spot 4 problems with this code snippet without compiling it
#constant Eaten = 0
#constant ManySausages = 4
#constant PoisonSausageFromMars = 22
#constant PoisonSausageDamage = 23.0
dim Sausages(5)
Sausages(0) = 1
Sausages(1) = 1
Sausages(2) = 1
Sausages(3) = 1
Sausages(4) = 1
Sausages(5) = PoisonSausageFromMars
print "Initial sausages on plate "; array count( Sausages )
Eat( 0 )
Eat( 1 )
Eat( 2 )
Eat( 3 )
Eat( 4 )
Eat( 5 )
array insert at bottom Sausages()
Sausages(0) = 1
print "Sausages left "; array count( Sausages )
if array count( Sausages ) > TooManySausages
print "Stop eating so much; Please wait while the system downloads a diet program"
endif
wait key
function Eat( sausageId )
if Sausages( sausageId ) = PoisonSausageFromMars
print "Deal "; PoisonSausageDamage; " sausage damage to player"
endif
list delete element Sausages( sausageId )
inc Eaten
endfunction
then leave this page now as the article may bore you to death, Chris is not to be held responsible for any damages caused.
If you have just installed DBPRO and you have not written more than 1000 lines of code in your life, and you think that a string and cord are both datatypes, and you think that declaring a 3D boat as a float will make it travel on water, and this is your first time here, then, welcome anyway.
Providing you have knowledge of how to use datatypes such as strings and floating point numbers, proceed with the article. If not, then it is recommended for you to look up the principles section of the shipped documentation; accessible by pressing F1 in your code editor. What you read in this article today may cause a panic attack, but tommorow it will make a little more sense. Be sure to add the article to your favourites if you wish to learn this stuff later.
(I lied about there only being 4 problems in the snippet above...)
Featured Article
Memblock Guide
Array Guide
All Articles
Projects
Downloads