Image object
Setting the UID (Property) is equivalent to reading the unique identifier of a Resource Manager image. The property is read-only, and the value returned is a string representing this unique identifier. The property value is unique and there is no default value.
Read only, String
This example shows how to retrieve the unique identifier of a Resource Manager image:
//Clear all TextBoxes except TextBox5
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ActiveSection.Name
var ActionName = "RM UID"
TextBox1.Text ="Start " + ActionName
if (TextBox5.Text == "")
{
TextBox1.Text ="Step 1"
try
{
TextBox3.Text = "UID is: " + ActiveSection.Shapes["Picture"].RMImage.UID
}
catch(e)
{
TextBox2.Text = "Caught: " + e.toString()
}
}
else
{
TextBox1.Text ="Step 2"
try
{
ActiveSection.Shapes["Picture"].RMImage.UID = TextBox5.Text
}
catch(e)
{
TextBox2.Text = "Caught: " + e.toString()
}
TextBox1.Text ="Step 3"
try
{
TextBox3.Text = "UID is: " + ActiveSection.Shapes["Picture"].RMImage.UID
}
catch(e)
{
TextBox2.Text = "Caught: " + e.toString()
}
}
TextBox1.Text ="End " + ActionName