Product Documentation

VCL/CLX Developers Guide

Previous Topic

Next Topic

Public properties

Property

Description

TypeID

property TypeID : LongWord ;

This property sets or gets the resource type. Resource types in the range of 1 to 127 are reserved for use by FairCom. These are special Resources used by the c-tree Server and d-tree. Resource types in the range of 128 to 65536 are also reserved. These are assigned to third party developers by FairCom. Resource types from 65537 and above are available to the programmer to be assigned as desired.

Number

property Number : LongWord;

This property set or get the resource number. When resources are being added, you can set the value of this property to CTDB_ASSIGN_RESOURCE_NUMBER to allow c-tree to use the next available resource number.

Resource

property Resource : string;

This property sets or gets the resource name. Resource names are optional. You do not have to assign one to a resource. The resource name is a null terminated character string of any length, although we recommend that you do not make them too long. Resource names starting with “FC!” are reserved for use by FairCom. Names starting with “RD!” are reserved for Resources assigned to third party developers by FairCom.

Locked

property Locked : boolean;

This read-only property indicates if a resource is locked or not. A value of true indicate that the resource is locked, while false indicate that the resource is not locked. A resource is typically locked by call to First, Next and Find methods.

DataLength

property DataLength : integer;

This read-only property indicate the number of bytes contained by the resource data property.

Data

property Data : pointer;

This read-only property retrieve a pointer to the resource data. The resource data is any collection of data that you wish to store as a resource. It can be a character string, a structure, or any variable type.

If the pointer is different than nil, property DataLength contains the number of bytes necessary to store the resource data.

TOCIndex