Recent

Author Topic: Using another unit in code  (Read 3532 times)

tbonejo

  • Jr. Member
  • **
  • Posts: 66
Using another unit in code
« on: October 20, 2008, 08:29:47 pm »
I have a app which in the uses clause I am trying to use a unit I did called "crc32".

How in code do I use a function from that unit?

Im used to Delphi style calling of forms and whatnot but this has me stumped.

Thanks,

Tom

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
RE: Using another unit in code
« Reply #1 on: October 20, 2008, 09:23:46 pm »
Should be the same as with Delphi.
What is exactly your problem?

tbonejo

  • Jr. Member
  • **
  • Posts: 66
RE: Using another unit in code
« Reply #2 on: October 20, 2008, 11:45:13 pm »
If my unit is called "crc32", how do I use it in another unit besides putting it in a uses clause?

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
RE: Using another unit in code
« Reply #3 on: October 21, 2008, 12:15:09 am »
What do you mean with "use it"? If it's in the uses clause, then you can call the functions etc. that are declared in the interface section of this unit.

tbonejo

  • Jr. Member
  • **
  • Posts: 66
RE: Using another unit in code
« Reply #4 on: October 21, 2008, 12:27:42 am »
Ah I did something wrong in the other unit, no wonder I couldnt access the functions.

Thanks

 

TinyPortal © 2005-2018