Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetResourceGuid: Difference between revisions

From Catglobe Wiki
Tungocman (talk | contribs)
Line 12: Line 12:
or
or


getResourceGuid(''uniqueId'')
getResourceGuid(''resourceUniqueId'')


'''Arguments'''
'''Arguments'''
Line 20: Line 20:
''id'': Is a number expression. It is the id of the resource with its specific type.
''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.
''resourceUniqueId'': Is a number expression. It is the resource unique id of the resource.


'''Return type'''
'''Return type'''
Line 32: Line 32:
or  
or  


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


'''Availability'''
'''Availability'''

Revision as of 07:58, 31 July 2012



getResourceGuid

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

Syntax

getResourceGuid(resourceType, id)

or

getResourceGuid(resourceUniqueId)

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.

resourceUniqueId: Is a number expression. It is the resource 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 resource unique id of user with id = 1

Availability

Version 5.4