setInformation
向结果中添加子检查描述
语法
setInformation(ft_obj, text)
说明
setInformation( 是一个可选方法,用于将文本添加为子检查标题后的第一项内容。可使用此方法来添加描述子检查的信息。ft_obj, text)
输入参数
| 模板对象的句柄。 |
| 字符向量或格式化对象的句柄,用于描述子检查。 有效的格式化对象包括: 模型顾问将 |
示例
创建一个列表对象 ft,并指定子检查标题和描述:
ft = ModelAdvisor.FormatTemplate('ListTemplate');
setSubTitle(ft, ['Check for constructs in the model '...
'that are not supported when generating code']);
setInformation(ft, ['Identify blocks that should not '...
'be used for code generation.']);