Equinox Online Help - Language Reference - A to Z

Home

Public

Applies to
SyntaxPublic Declaration
Action[Statement] Specifies that a procedure or DLL function declaration is public.
ScopeOnly usable in public procedure libraries.
Notes

This keyword appears before a procedure or DLL function declaration, to declare it as public. Public procedures and DLL functions can be accessed from any part of Equinox, at any time.

Note that you must define public procedures/ DLL functions using the Public Procedure editor.

CategoryDeclarations
See Also Date, Define, Logical, Memo, Number, Procedure_EndProcedure, Radio, String, Timer
Example

The following example is similar to the one given for the Procedure statement. A procedure is used to display a standard message.

if AssetNumber <> 0 then
Exit Method
else
TestIfEmpty | Procedure call
end if

In this case, the TestIfEmpty procedure is defined in a public procedure library:

public procedure TestIfEmpty
Alert "Please supply a value"
end procedure | TestIfEmpty