设置必备

seqreed(breed)++{{bulean}

继承发件人 :ApiFormBase#SetRequired

指定需要当前表单 。

参数:

名称 类型 描述性
b 需要 布林安

定义当前表单是否需要(正)或非(假)

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentVar OCombOBoxForm = Api.CreateCombOBoxFormvarolements=ODocument.GetEplement0oParagraph.AddElement(oComboBoxForm)!oComboBoxForm.SetRequired(true)!Varbreed=oComboBoxForm.Isreedodeptes = Api.Createlementsod.adTextoDocument.Push(oParagraph)!builder.SaveFile("docx", "SetRequired.docx")!builder.CloseFile();

结果文档