IMinute.GetSetImageAsObject Method
Function GetSetImageAsObject( _
ByVal row As Integer _
) As InputFieldsFromSetImage
This language is not supported or no code example is available.
Parameters
- row
- int
The row in the minute where the set image info is stored (1-9999).
Return Value
InputFieldsFromSetImageThe value containing info about inputs to the set.
The set image contains the values of the imported set. They are stored in the heading rows of sets.
You can test if the Set Image contains a file or values to be converted into an object by invoking GetTypeOfSetImage function. You can use this function only when the Set Image contains values to be converted into an object.
The following example reads the input fields of the set image from row 2 of task A.1, adds a new field and writes the fields back.
' This code reads the input fields of the set image from row 2 of task A.1, adds a new field and writes the fields back. ' Get the task and the minute. Dim Task As ITask = Es.CurrentVersion.Wbs.GetTask("001001001000000000000000") Dim Minute As Qdv.UserApi.Iminute = Task.Minute ' Read the input fields. If Minute.GetTypeOfSetImage(2) <> SetImageManagement.SetImageType.InputsObject Then ' There are no input fields on this row. Throw New InvalidOperationException("The specified row doesn't contain input fields.") End If Dim Inputfields As SetImageManagement.InputFieldsFromSetImage = Minute.GetSetImageAsObject(2) ' add a new input field Dim inputFld As SetImageManagement.InputFieldFromSetImage = New SetImageManagement.InputFieldFromSetImage() inputFld.ControlAddress = "$H$6" inputFld.ControlSheetIndex = 2 inputFld.FieldName = "new_input_field" inputFld.Value = "123" Inputfields.Fields.Add(inputFld) ' store the updated input fields Minute.StoreSetImageAsObject(2, Inputfields)
This language is not supported or no code example is available.
Available since QDV 7.15.546.