BtTable:SetOwner()

 

<< Click to Display Table of Contents >>

Navigation:  Support Classes > BtTable Class >

 

BtTable:SetOwner()

 

Previous pageReturn to chapter overviewNext page

 

Purpose

 

 

Assign Owner name to Btrieve file

 

 

 

Prototype

 

 

METHOD SetOwner ( cOwner AS STRING, nMode AS BYTE )  AS LOGIC PASCAL CLASS BtTable

 

 

 

Argument(s)

 

 

<cOwner>                New Owner name

<nMode>                Open mode for use without valid Owner name

                         0 Requires an owner name for any access mode (no data encryption)

                         1 Permits read-only access without an owner name (no data encryption)

                         2 Requires an owner name for any access mode (with data encryption)

                         3 Permits read-only access without an owner name (with data encryption)

 

 

 

 

Return

 

 

LOGIC                Was the owner Set succesfully

 

 

 

Description

 

 

Please note that you can't set an owner name if there is already an owner name set for the table.

 

 

 

See Also

 

 

BtTable, BtServer:SetOwner(), BtTable:ClearOwner()