From f689cf24f29e7790ddaeeb0e078d191b4e76952c Mon Sep 17 00:00:00 2001 From: YangMingHao <2054683303@qq.com> Date: Wed, 6 Aug 2025 15:38:33 +0800 Subject: [PATCH] vault backup: 2025-08-06 15:38:32 --- SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md index 9a739a9f..98fb6535 100644 --- a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md +++ b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md @@ -438,6 +438,10 @@ end. > 若想达到效果,当 `cbxusr_444` 枚举控件选择 `A` 的时候,`cbxusr_333` 枚举控件要更新成 `3` > > 那么使用 `cbxusr_333.itemindex := cbxusr_444.itemindex;` 是无法实现的,因为 `cbxusr_444` 枚举控件选择 `A` 的时候,`iteminde` 为 `0`,而 `cbxusr_333` 枚举控件的 `itemindex` 为 `0` 的时候,对应的是枚举 `3` +> +> 但是 `cbxusr_444.Text := cbxusr_333.Text;` 是可以实现的 +> +> 因为 `cbxusr_333` 枚举控件选择 `3` 的时候,`cbxusr_333.Text` 获取到的就是 `3`,而将这个值赋值给 `cbxusr_444.Text` 后,实际上在数据库里 `cbxusr_444` 是存储 ## 枚举项联动