
-----------------------------------
Jonny Tight Lips
Sat Sep 25, 2004 5:20 pm

include and unit questions?
-----------------------------------
OK I know ther eis tutorial on this but it wasn't very to me so anyways. When you use the include command I know (or think) that it just like compying and pasting the code from the other program right  there. But what I don't understand is about the unit commands and how they fit in with the include command and what different it makes if I use unit in the progrem vs not. Well thanx in advance.

-----------------------------------
Delos
Sat Sep 25, 2004 6:25 pm


-----------------------------------
Please read [url=http://www.compsci.ca/v2/viewtopic.php?t=4303]this.

I'm sure you'll find your answer(s) there.
PS:  read the whole thing, it's not too long and it will be quite informative methinks.

-----------------------------------
Jonny Tight Lips
Sat Sep 25, 2004 11:12 pm


-----------------------------------
I might be really stupid but I Still don't understand and yes I did read the WHOLE thing. It just seem to be exactly the same with include as it is without. I think I have a small idea but I think I'm far off. Could someone jsut tell me what the diff is. Just make it sort sweet and to the point something my small mind can grasp. altho that was a good tutorial Delos I jsut couldn't find out the why I would want to make it a unit and not just include it. Thanx

-----------------------------------
Tony
Sun Sep 26, 2004 12:19 am


-----------------------------------
in a nutshell

include is copy/paste

unit is used to properly wrap a block of reusable code into a file to be included

-----------------------------------
Jonny Tight Lips
Sun Sep 26, 2004 9:29 pm


-----------------------------------
Hmmm IC... well not really but I do beleive that just the basic include  will be sufficeint for my needs until I become more experienced. Thanx for the help.
