Skip to Content
0
Former Member
Oct 22, 2004 at 01:02 PM

Changing Matrix column title?

790 Views

Hi all,

Is it possible to change a matrix column title using the ColumnTitle.Caption property? I have tried using the following code but it does not work:

'Sales order form - Add mode.

If pVal.FormType = 139 And pVal.FormMode = 3 Then

'After form loads

If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False Then

'SO form.

Set oForm = oApp.Forms.Item(FormUID)

Set oItem = oForm.Items.Item("38")

Set oMatrix = oItem.Specific

Set oColumn = oMatrix.Columns.Item("1")

oColumn.TitleObject.Caption = "Item Code"

End If

End If

Thank you.

Andrew.