Skip to main content

Caché Basic Commands

  • Call – Transfers control to a Sub procedure or Function procedure.
  • Catch – Identifies a block of code to execute when an exception occurs.
  • Const – Declares constants for use in place of literal values.
  • Continue – Jumps to FOR or DO WHILE statements and reexecutes test and loop.
  • Copy – Copies array elements from source to target.
  • Debug – Interrupts program execution and enters programmer mode.
  • Dim – Declares variables.
  • Do...Loop – Repeats a block of statements while a condition is True or until a condition becomes True.
  • Erase – Removes the named variable and deallocates dynamic-array storage space.
  • EraseArray – Removes the array elements of a variable and deallocates dynamic-array storage space.
  • EraseValue – Removes the root node of a variable.
  • Exit – Exits a block of Do...Loop, For...Next, Function, or Sub code.
  • For Each...Next – Repeats a group of statements for each element in an array or collection.
  • For...Next – Repeats a group of statements a specified number of times.
  • Function – Declares the name, arguments, and code that form the body of a Function procedure.
  • Goto – Transfers program execution to the specified location.
  • If...Then...Else – Conditionally executes a group of statements, depending on the value of an expression.
  • Imports – Imports a package name.
  • Input – Accepts input and stores it in a variable.
  • Let – Assigns an object reference to a variable or property.
  • Merge – Merges array elements from source to target.
  • New – Creates a new instance of an object.
  • On Error Goto – Enables an error-handling routine and specifies the location of the routine within a procedure.
  • OpenId – Opens a new instance of an object for a given Identifier.
  • Option Explicit – Used at script level to force explicit declaration of all variables in that script.
  • Print, Println – Writes a string to the current device.
  • Randomize – Initializes the random-number generator.
  • Rem – Used to include explanatory remarks in a program.
  • Return – Exits from the current function and returns a value from that function.
  • Select Case – Executes one of several groups of statements, depending on the value of an expression.
  • Set – Assigns an object reference to a variable or property.
  • Sleep – Causes program execution to delay for the specified number of seconds.
  • Sub – Declares the name, arguments, and code that form the body of a Sub procedure.
  • TCommit – Marks the successful completion of a transaction.
  • Throw – Throws an exception from a Try block to a Catch exception handler.
  • TRollback – Rolls back (reverts) changes made during the current transaction.
  • Try – Identifies a block of code to monitor for errors during execution.
  • TStart – Marks the beginning of a transaction.
  • While...Wend – Executes a series of statements as long as a given condition is true.
  • With – Executes a series of statements on a single object.
FeedbackOpens in a new tab