Difference between revisions of "Resource getResourceProperties"
Line 1: | Line 1: | ||
[[Category:Resource_Functions]] | [[Category:Resource_Functions]] | ||
− | | + | {{HelpFiles}} |
====Resource_getResourceProperties==== | ====Resource_getResourceProperties==== |
Revision as of 03:57, 14 December 2011
Resource_getResourceProperties
Get all properties' values of a resource
Syntax
Resource_getResourceProperties(resourceId)
Arguments
- resourceId: is a number expression, it is the resource's unique id
Return value
An array of arrays, it is an array of property objects, which contains the following items [i][RESOURCE_PROPERTY_TYPE] == RESOURCE_PROPERTY_TYPE_SINGLE)
//set the first option selected
properties[i][RESOURCE_PROPERTY_VALUE] = 1;
}
Resource_resourcePropertiesSave(15543655, properties);
Availability
Version 5.6