Steve/Tom - That was the trick. DECLARE Thanks.
------------------
[This message has been edited by Shawn Tartaglia (edited April 19, 2000).]
Announcement
Collapse
No announcement yet.
Prototyping
Collapse
X
-
Guest replied
-
Note that declarations are done using the DECLARE statement. So, for a function:
Code:FUNCTION Foo (x AS INTEGER) AS INTEGER FUNCTION = x + 1 END FUNCTION
Code:DECLARE FUNCTION Foo (x AS INTEGER) AS INTEGER
Tom Hanlin
PowerBASIC Staff
Leave a comment:
-
Shawn,
Its pretty much the same stuff, C/asm prototypes are the same thing as
PowerBASIC's DECLARATIONS. They are best put in a seperate INCLUDE file
and called at the top of the code for either the EXE or DLL. As normal you
are safer to declare them before using them to avoid forward reference
#COMPILE DLL
#INCLUDE "MYFILE.INC" '<< put declarations in this file
Then write your code after it.
Regards,
[email protected]
------------------
Leave a comment:
-
Prototyping
I read some where in the forum about this but I could not find in a search..
In C its called prototyping, I don't know what it is called in PB.
Question: How do you do prototyping in PB?
[This message has been edited by Shawn Tartaglia (edited April 19, 2000).]Tags: None
Leave a comment: