Variable which contains all the available information about a resource.
To create a language type variable, add a resource to the survey.
This object is accessible through the Survey.Resources collection
In this topic:
Id of the resource.
Returns a Number.
Survey.Resources[1].Id ' => 3
Survey.Resources[2].Id ' => 7
Returns the name of the resource.
Returns a String.
Survey.Resources[1].Name ' => "asahi"
Survey.Resources[2].Name ' => "corona"
Returns true if the path of the resource is stored externally.
Returns a Boolean.
Survey.Resources[1].StoredExternally ' => true
Survey.Resources[2].StoredExternally ' => false
Returns the URL of the resource.
Returns a String.
Survey.Ressources[1].ResourceURL ' => "/asahi.png"
ResourceID of the resource.
Returns a Number.
Survey.Resources[1].ResourceID ' => 0
Survey.Resources[2].ResourceID ' => 2
Language of the resource.
Returns a Language.
Survey.Resources[1].Language.Id ' => 2057 (for English)
Survey.Resources[1].Language.Name ' => "English (United Kingdom)"
Returns the list of resource scenarios.
Return an Array of String
Survey.Resources[1].Scenarios.Count ' => 2
Survey.Resources[1].Scenarios[1] ' => "Woman Version"
Returns a string which represents the resource (express in JSON format).
Returns a String.
' Output in a single line (it's break here for the readability)
Survey.Resources[1].ToString()
' => {
"id" : 3,
"name" : "asahi",
"storedexternally" : false,
"resourceurl" : "asahi",
"resourceid" : 0,
...
}
Always returns "resource".
Returns a String.
Survey.Resources[1].TypeOf() ' => "resource"