P.create()

Read(564) Label: copy, new table sequence,

Description:

Generate a new empty table sequence by copying data structure of a specific record sequence.

Syntax:

P.create()

Note:

If parameter P has the key, just copy it.

Parameter:

P

A record sequence

Return value:

Empty table sequence

Example:

Generated from a record sequence:

 

A

 

1

=demo.query("select top 1 * from DEPARTMENT")

2

=A1.to()

Generate a record sequence.

3

=A2.create()

Create an empty table sequence that has same data structure as A2’s.

When there is the key:

 

A

 

1

=demo.query("select top 1 * from DEPARTMENT ")

2

=A1.keys(DEPT)

 

3

=A1.to()

Generate a record sequence CITIES.ctx.

4

=A3.create()

Create an empty table sequence that has same data structure as A3’s while copying the key.