This wiki is out of date, use the continuation of this wiki instead

Include

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:48, 19 March 2008 (edit)
212.123.12.180 (Talk)
(New page: Category:filetypes == Definition == Include files to the current file. These files (*.INC) contain code that gets appended to the current file. == See also == * INC {{Filetyp...)
← Previous diff
Revision as of 14:53, 19 March 2008 (edit) (undo)
212.123.12.180 (Talk)

Next diff →
Line 2: Line 2:
== Definition == == Definition ==
Include files to the current file. These files (*.[[INC]]) contain code that gets appended to the current file. Include files to the current file. These files (*.[[INC]]) contain code that gets appended to the current file.
 +
 +== Example ==
 +main.prg:
 +[code]
 +
 +include "bar.inc";
 +program foo;
 +private
 + int barcode;
 +begin
 + write_int(0,100,100,&barcode);
 + barcode = bar();
 + repeat
 + frame;
 + until(key(_esc))
 +end
 +
 +[/code]
 +
 +bar.inc:
 +[code]
 +
 +int bar()
 +begin
 + return 5;
 +end
 +
 +[/code]
== See also == == See also ==

Revision as of 14:53, 19 March 2008

Definition

Include files to the current file. These files (*.INC) contain code that gets appended to the current file.

Example

main.prg: [code]

include "bar.inc"; program foo; private

 int barcode;

begin

 write_int(0,100,100,&barcode);
 barcode = bar();
 repeat     
   frame; 
 until(key(_esc))

end

[/code]

bar.inc: [code]

int bar() begin

 return 5;

end

[/code]

See also


Filetypes
FBMFGCFHFPGFPLINCMAPPALPNGPRG
Personal tools