From 0470182536413154027568b547cf0d9331894ee2 Mon Sep 17 00:00:00 2001 From: YangMingHao <2054683303@qq.com> Date: Wed, 6 Aug 2025 15:40:33 +0800 Subject: [PATCH] vault backup: 2025-08-06 15:40:33 --- SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md index 98fb6535..72afef22 100644 --- a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md +++ b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md @@ -439,9 +439,9 @@ end. > > 那么使用 `cbxusr_333.itemindex := cbxusr_444.itemindex;` 是无法实现的,因为 `cbxusr_444` 枚举控件选择 `A` 的时候,`iteminde` 为 `0`,而 `cbxusr_333` 枚举控件的 `itemindex` 为 `0` 的时候,对应的是枚举 `3` > -> 但是 `cbxusr_444.Text := cbxusr_333.Text;` 是可以实现的 +> `cbxusr_444.Text := cbxusr_333.Text;` 的效果说明: > -> 因为 `cbxusr_333` 枚举控件选择 `3` 的时候,`cbxusr_333.Text` 获取到的就是 `3`,而将这个值赋值给 `cbxusr_444.Text` 后,实际上在数据库里 `cbxusr_444` 是存储 +> `cbxusr_333` 枚举控件选择 `3` 的时候,`cbxusr_333.Text` 获取到的就是 `3`,而将这个值赋值给 `cbxusr_444.Text` 后,实际上在数据库里 `cbxusr_444` 是存储着 `3` 的,虽然在页面上最初会显示成 `3`,但当我们保存后,`3` 所对应的 `C` 枚举会显示在 `cbxusr_444` 控件内 ## 枚举项联动