open()

Description:

Use password to open a composite table file or a homo-name files group.

Syntax:

f.open(p)

Note:

The function opens an existing composite table file or a homo-name files group using the password. A write password is needed to update the file and a read password is only for the access. For a homo-name files group, each file must have same data structure and use same passwords. A missing member file in a files group means the corrreponding part of data is missing. Merge a patch file, if there is one, with the existing data when retrieving a member file.

Parameters:

f

A composite table/homo-name files group

p

A password

Return value:

Cursor

Example:

 

A

 

1

=file("D:\\emp.ctx")

 

2

=A1.open("123")

Use the read password to open emp.ctx

3

=file("emp1.ctx":[0,1,2])

The files named emp1.ctx in data zones 0, 1, and 2 have same structure and passwords

4

=A3.open("456")

Use the read password to open emp1.ctx