Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
Using another unit in code
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
BCA KCP Komp. Taman Kota ...
by
freedoom
[
Today
at 09:15:36 am]
BCA KCP Tomang Raya Telp:...
by
freedoom
[
Today
at 09:14:49 am]
BCA KCP Kebon Jeruk Telp:...
by
freedoom
[
Today
at 09:14:03 am]
BCA KCP Jelambar Baru Ray...
by
freedoom
[
Today
at 09:13:13 am]
BCA KCU TAMAN DUTA MAS Te...
by
freedoom
[
Today
at 09:12:12 am]
BCA KCU GREEN GARDEN Telp...
by
freedoom
[
Today
at 09:11:24 am]
BCA KCP Kepa Duri Telp:08...
by
freedoom
[
Today
at 09:10:31 am]
BCA KCU WISMA ASIA Telp:0...
by
freedoom
[
Today
at 09:09:42 am]
BCA KCU DAAN MOGOT Telp:0...
by
freedoom
[
Today
at 09:08:41 am]
Create small language
by
Packs
[
Today
at 08:16:34 am]
Unleashed Pascal (async/a...
by
Fibonacci
[
Today
at 08:11:20 am]
SPAM
by
paweld
[
Today
at 07:17:10 am]
New charts
by
hedgehog
[
Today
at 06:46:20 am]
Automatic generation of *...
by
dbannon
[
Today
at 06:32:16 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using another unit in code (Read 3559 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
Logged
theo
Global Moderator
Hero Member
Posts: 1947
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?
Logged
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?
Logged
theo
Global Moderator
Hero Member
Posts: 1947
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.
Logged
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
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
Using another unit in code
TinyPortal
© 2005-2018