load_db()

load_db()

load_db(filename)

Loads a spreadsheet’s data directly from the file.

Parameter Type Description
filename String The full path to the saved Datavyu file.

Returns

  • $db: the spreadsheet of the opened project
  • $pj: project data of the opened project

Example

The following example loads the test.opf spreadsheet located on the Desktop.

require 'Datavyu_API.rb'
begin
   $db,$pj = load_db("~/Desktop/test.opf")
end