Reserved words

The words PocketBuilder uses internally are called reserved words and cannot be used as identifiers. If you use a reserved word as an identifier, you get a compiler warning. Reserved words that are marked with an asterisk (*) can be used as function names.

Table 1-3: PowerScript reserved words
  • alias

  • and

  • autoinstantiate

  • call

  • case

  • catch

  • choose

  • close*

  • commit

  • connect

  • constant

  • continue

  • create*

  • cursor

  • declare

  • delete

  • describe*

  • descriptor

  • destroy

  • disconnect

  • do

  • dynamic

  • else

  • elseif

  • end

  • enumerated

  • event

  • execute

  • exit

  • external

  • false

  • fetch

  • finally

  • first

  • for

  • forward

  • from

  • function

  • global

  • goto

  • halt

  • if

  • immediate

  • indirect

  • insert

  • into

  • intrinsic

  • is

  • last

  • library

  • loop

  • next

  • not

  • of

  • on

  • open*

  • or

  • parent

  • post*

  • prepare

  • prior

  • private

  • privateread

  • privatewrite

  • procedure

  • protected

  • protectedread

  • protectedwrite

  • prototypes

  • public

  • readonly

  • ref

  • return

  • rollback

  • rpcfunc

  • select

  • selectblob

  • shared

  • static

  • step

  • subroutine

  • super

  • system

  • systemread

  • systemwrite

  • then

  • this

  • throw

  • throws

  • to

  • trigger

  • true

  • try

  • type

  • until

  • update*

  • updateblob

  • using

  • variables

  • while

  • with

  • within

  • _debug

The PocketBuilder system class also includes private variables that you cannot use as identifiers. If you use a private variable as an identifier, you get an informational message and should rename your identifier.