beautypg.com

Setfieldtableheader – Teledyne LeCroy User-Defined Decoding (UDD) Advanced Script Language (ASL) Reference Manual User Manual

Page 20

background image

17

SetFieldTableHeader

SetFieldTableHeader(FieldId, string);
SetFieldTableHeader(FieldId, OptionalFieldId);

Remark

If you specify that subfields of a field are shown as a separated table (see SubFieldOf statement),
this statement can set table header.

If you use SetFieldTableHeader(FieldId, string) form of this statement, specified string is set in
table header. If you use SetFieldTableHeader(FieldId, OptionalFieldId) form of this statement,
option string of specified OptionalFieldId is set as table header. For more information about
optional field, see the DefineOption statement.

Parameter

FieldId
is the fieldId defined in AddField.

String specifies the string that you want to show in header of table.

OptionalFieldId specifies FieldId of an optional field.

Example

OpCode = AddField (0, 8, “Op Code”, “Op Code”, “Op Code”);
Type = AddField (CURPOS, 8, “Type”, “Type”, “Type”);
SubFieldOf(Type, Separated)
{

SetFieldTableHeader(Type, “Sub fields of Type”);

T1= AddField (0, 4, “T1”, “T1”, “T1”);

T2= AddField (4, 8, “T2”, “T2”, “T2”);

}