Difference between revisions of "Resource getResourcesProperties"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "Category:Resource_Functions = Resource_getResourcesProperties = Get properties of multi resources == Syntax == Resource_getResourcesProperties(array resourceRId); ==...")
 
 
Line 18: Line 18:
 
Key is resourceRId of resources on input array which has at least one property value
 
Key is resourceRId of resources on input array which has at least one property value
  
Value is array of properties of the resource. Same structure when you use Resource_getResourceProperties
+
Value is array of properties of the resource. Same structure when you use [[Resource_getResourceProperties]]
  
 
== Example ==
 
== Example ==

Latest revision as of 05:33, 2 June 2020

Resource_getResourcesProperties

Get properties of multi resources

Syntax

Resource_getResourcesProperties(array resourceRId);

Arguments

resourceRId: array ResourceId of resources you what to get properties

Return type

Dictionary, where:

Key is resourceRId of resources on input array which has at least one property value

Value is array of properties of the resource. Same structure when you use Resource_getResourceProperties

Example

Dictionary d = Resource_getResourcesProperties({123,456,789});
/*
{
	"123": {
		{10,1,number,1,38900},
		{10,2,boolean,True,38901},
		{10,3,string,xxx,38902},
		{10,4,datetime,{2020,6,2,7,0,0,0,23,65},38903},
		{10,5,single,1,38904},
		{10,6,multi,{1,2},38905},
		{10,7,resource,15536784,38906}
	},
	"789": {{10,1,number,1,38907}}
}
*/
print(d.Keys);//{123,789} 456 is not a key because of lacking property or lacking value on property