Resource_GetNthResource()

Examples


The Resource_GetNthResource() function returns the resource ID, name, and series of the specified resource.

Syntax

Resource_GetNthResource(product_ID, type, index, name, series)

Parameters

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

type – An integer specifying the type of resource for which information is being retrieved. The available types and their corresponding integer values are shown 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


index – An integer specifying the resource for which information is being retrieved. The value 1 indicates the first resource, 2 indicates the second resource, and so on. The resources are retrieved in resource ID order.

name – A returned string containing the resource’s technical name. If the resource cannot be found, the string “[Not Found]” or the empty string will be returned.

series – An integer indicating the series the resource is assigned to. The possible values are shown in the following list:

[spacer]

Series

1 – Financial

2 – Sales

3 – Purchasing

4 – Inventory

5 – Payroll

6 – Project

7 – System


Return value

An integer containing the resource ID of the specified resource. If the resource doesn’t exist, the value 0 is returned.


Documentation Feedback