TABLE.CREATE_END Function

Syntax

as P = Create_End(C Filename[,N file_open_mode])

Arguments

Filename

Table file path and name. The .DBF file extension is automatically added to the filename if no other extension is specified.

file_open_mode

Optional. Determines the access privileges that apply to the new table file. It uses the following system variables:

Variable
Function
FILE_RO_EXCLUSIVE

Read Only (Exclusive)

FILE_RW_EXCLUSIVE

Read or Write (Exclusive)

FILE_RO_SHARED

Read Only (Shared)

FILE_RW_SHARED

Read or Write (Shared)

Description

The TABLE.CREATE_END() method completes the definition of a table structure that was initiated by the TABLE.CREATE_BEGIN() method, creates the table file, and returns a pointer. After the table file is created, it is opened and ready for use.

Example

Create a table.

dim tbl as P
table.create_begin("firstname","c",30)
table.field_add("lastname","c",30)
table.field_add("price","n",5,2)
table.field_add("quantity","n",2)
table.field_add("birthday","d")
'The create_end method creates the table and assign an object  pointer to the table
tbl = table.create_end("C:\sample.dbf")

See Also