diff --git a/SanPinPLM/相关操作/4.0-other/200.Delphi脚本.md b/SanPinPLM/相关操作/4.0-other/200.Delphi脚本.md index b21b8523..337b8618 100644 --- a/SanPinPLM/相关操作/4.0-other/200.Delphi脚本.md +++ b/SanPinPLM/相关操作/4.0-other/200.Delphi脚本.md @@ -89,9 +89,13 @@ end. 案例如下 +```delphi +chiGetFieldValueBySql('select top 1 usr_sqlmj from pdmitem where usr_sqlmj like ''%' + str + '%''') ``` -``` +#### 执行sql填充下拉框 + +此函数作用为执行sql语句,将获取到的结果作为下拉选项提供给下拉框,需要写入 ### 错误提示区 diff --git a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md index 244d0733..0444aaf4 100644 --- a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md +++ b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md @@ -649,7 +649,7 @@ end. ### 前置要求 -接收下拉选择的控件的 **按钮类型** 必须是 **下拉** 才行 +接收下拉选择的控件的 **按钮类型** 必须是 **下拉** 才行(属性的类型可以是文本,也可以是枚举,枚举要求枚举来源为空) ![](assets/Pasted%20image%2020250710104426.png)