Example Context loadWorkspace 002

 

 

Description

This example saves and loads the workspace from a file using the file ID..

 

Details

(clear) Returns: true

Create and initialize a global variable.

(setq mtest "hello") Returns: hello

A file containing the workspace is opened.

(setq fid (fileOpen "workspace.db" 1 3)) Returns: 1

The current workspace is saved using the file ID.

(saveWorkspace fid) Returns: true
(fileClose fid 1) Returns: true

The current workspace is cleared.

(clear) Returns: true

There is no previously saved value for mtest.

(writeln mtest) Returns: #void

A file containing the workspace is opened.

(setq fid (fileOpen "workspace.db" 0 3)) Returns: 1

The current workspace is loaded using the file ID.

(loadWorkspace fid ) Returns: true

The saved value of mtestin the currently loaded workspace is displayed.

(writeln mtest) Returns: hello

 

Related Examples

Here are examples of the loadWorkspace function at work.

Context loadWorkspace 001 Context loadWorkspace 002 Context preAllocateFixedMemoryBlocks 001

 

Function Links

Here is the link to the current function used in this example.

loadWorkspace

Here are a number of links to other related functions.

saveWorkspace(#void)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Context

Here are a number of links to examples having similar argument types.

Context clear 001 Context debug 001 Context debugBrowsableProcs 001 Context disassemble 001
Context evalInSyncLocalContext 001 Context getGlobalValue 001 Context getSymbolTable 001 Context inspect 001
Context loadWorkspace 001 Context loadWorkspace 002 Context preAllocateFixedMemoryBlocks 001 Context reset 001
Context saveWorkspace 001 Context systemCheck 001 Context version 001

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE