EXPORT

Top  Previous  Next

Syntax

EXPORT function_name

Description

Exports a function in a DLL build.

Parameters

function_name - The name of the subroutine .

Return value

None

Remarks

When creating a DLL use EXPORT to indicate which functions are available in the public export table. These functions will be visible to be imported in other programs and languages. An exported subroutine is automatically declared as GLOBAL. Subroutines not exported will be private to your DLL.

See Also: GLOBAL

Example usage

export MYFUNCTION
export MYFUNCTION2
export INTRAND
 
SUB MYFUNCTION(in as INT),INT
RETURN in
ENDSUB
 
SUB MYFUNCTION2(),INT
RETURN 0
ENDSUB
 
SUB INTRAND(min as INT,max as INT),INT
RETURN RAND(min,max)
ENDSUB