Difference between revisions of "GetResourceGuid"

From Catglobe Wiki
Jump to: navigation, search
(getResourceGuid)
Line 30: Line 30:
 
string guid = getResourceGuid(Resource_Type_User, 1);
 
string guid = getResourceGuid(Resource_Type_User, 1);
  
//guid == getResourceGuid(123), with 123 is the unique id of user with id = 1
+
or
 +
 
 +
string guid == getResourceGuid(123); // with 123 is the unique id of user with id = 1
  
 
'''Availability'''
 
'''Availability'''

Revision as of 08:56, 23 December 2011



getResourceGuid

Returns the resource's Guid by its type and id or its unique id.

Syntax

getResourceGuid(resourceType, id)

or

getResourceGuid(uniqueId)

Arguments

resourceType: Is a number expression. It must be one of the pre-defined constants specified in getResourceTypeFromGuid function.

id: Is a number expression. It is the id of the resource with its specific type.

uniqueId: Is a number expression. It is the unique id of the resource.

Return type

string

Examples

string guid = getResourceGuid(Resource_Type_User, 1);

or

string guid == getResourceGuid(123); // with 123 is the unique id of user with id = 1

Availability

Version 5.4