vault backup: 2025-08-06 15:34:31
This commit is contained in:
@ -93,6 +93,12 @@ end.
|
||||
chiGetFieldValueBySql('select top 1 usr_sqlmj from pdmitem where usr_sqlmj like ''%' + str + '%''')
|
||||
```
|
||||
|
||||
获取的结果赋值给变量
|
||||
|
||||
```
|
||||
str := chiGetFieldValueBySql('select usr_333 from pdmitem where itemcode = ''' + fedtItemCode.Text + '''');
|
||||
```
|
||||
|
||||
#### 执行sql填充下拉框
|
||||
|
||||
此函数作用为执行 `SQL` 语句,将获取到的结果作为下拉选项提供给下拉框,需要写入两个参数,第一个为 `SQL` 语句,第二个为要接收结果的控件(接收结果的控件,其 **按钮类型** 必须为 **下拉**,详见 [根据输入内容在数据库中查询,获取查询结果作为下拉列表以供选择](999.Delphi脚本记录.md#根据输入内容在数据库中查询,获取查询结果作为下拉列表以供选择) 说明 )
|
||||
|
Reference in New Issue
Block a user