ISImage.Tag

Description

The tag of the specified image control.

Syntax

object.Tag

Part Attribute Type Description
object Required
The object always implements the ISImage interface

Return Value

int

Example

Display some information about the specified image control, including its tag.

Dim aImage
Dim aImageInfo

Set aImage = Form.Controls_("Image1")
aImageInfo =_
  "ShortName: " & aImage.ShortName & vbNewLine &_
  "TypeName: " & aImage.TypeName & vbNewLine &_  
  "Caption: " & aImage.Caption & vbNewLine &_  
  "Width: " & aImage.Width & vbNewLine &_
  "Height: " & aImage.Height & vbNewLine &_
  "Hint: " & aImage.Hint & vbNewLine &_
  "Left: " & aImage.Left & vbNewLine &_
  "Top: " & aImage.Top & vbNewLine &_
  "Tag: " & aImage.Tag                
  
Profile.MsgBox(aImageInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Tag can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the image control in the controls tree > Properties > Tag.

Version information

Added in v7.8.0