Resource_GetID()

Examples


The Resource_GetID() function returns the resource ID for a specified resource type and name.

Syntax

Resource_GetID(product_ID, resource_type, resource_name)

Parameters

product_ID – An integer specifying the product ID of the dictionary from which the resource ID is being retrieved.

resource_type – An integer specifying a resource type. The available types and their corresponding integer values are in the following list:

[spacer]

Integer values for resource types

1 – Tables

2 – Forms

6 – Data types

7 – Composites

8 – Formats

9 – Strings

15 – Generic pictures

18 – Fields

21 – Procedure scripts

23 – Reports

26 – Global variables

28 – Metafiles

29 – Mac Pictures

30 – Messages

42 – Table Groups

48 – Constants

62 – Functions


resource_name – A string specifying the technical name of the resource that you want the resource ID for. For tables, this is the name that appears in the Table Name field in the Table Definition window, not the display name.

Return value

An integer containing the resource ID for the specified resource. If the resource can’t be located, 0 is returned.


Documentation Feedback