GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | EXPORT

Edit History

EXPORT

EXPORT thing

Home > Reference > System

Export a SUB, FUNC or variable from a UNIT to be used by the unit consumer.

See UNIT for more information.

Example: Create an unit

UNIT MyTestUnit

export const my_pi = 3.145
export my_two_pi = 6.29
export MyFunc
export MySub

func MyFunc(a)
  return a + 10
end

sub MySub(a)
  print a + 10
end
Code samples using EXPORT
base64.bas   crgb.bas   properties.bas   strlib.bas  
System
CHAIN   COMMAND   CWD   DELAY   ENV   ENV   EXEC   EXPORT   FRE   HOME   IMPORT   INCLUDE   MAXINT   NIL   OPTION   PAUSE   PI   PROGLINE   RANDOMIZE   RUN   SBVER   SELF   STKDUMP   TROFF   TRON   UNIT  
This page was last edited on Sun, 26 Feb 2023 20:18:16 +0100 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.