DECLARE (non-BASIC statement)

From QB64 Wiki

Revision as of 21:34, 9 May 2011 by Clippy (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Declares calling sequences for external procedures written in other languages.


Syntax:

DECLARE {FUNCTION | SUB} name [ CDECL ] [ ALIAS "aliasname"] [([parameterlist, ...])]


  • Currently NOT supported in QB64!
  • CDECL indicates that the procedure uses the C language argument order.
  • ALIAS indicates the procedure name used in the object or library file.
  • The syntax for the parameterlist is as follows: [{ BYVAL | SEG }] variable [AS type [,[{ BYVAL | SEG }] variable2 [ AS type]]...
  • QB64 ignores DECLARE statements, so define the parameter values in the SUB!


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page