Visual FoxPro 新手 - 我的文本框显示为灰色且无法访问

发布于 2024-11-16 23:07:07 字数 370 浏览 4 评论 0原文

我正在尝试创建一个 Visual FoxPro 独立应用程序,它将接受用户的两个输入(旧位置和新位置)。它将有两个具有 1:M 关系的表,主键和外键与旧位置匹配。然后,应用程序应将旧位置的两个表中的所有实例替换为新位置。

我已将表单放在一起,并在网格中显示两个表中的字段,两个文本框都存在,并且有一个“更新记录”提交按钮。

我的问题是,当我选择“表单”>“运行表单”时,我的文本框显示为灰色,并且无法输入任何内容。

有谁知道为什么这些框会变灰?我检查了“属性”>数据>只读,它们都标记为.F。

非常感谢您的帮助!

*编辑:想通了-打开了 ControlSource,因为我认为这会将输入绑定到特定表中的特定字段。没关系! :)

I'm attempting to create a Visual FoxPro standalone application that will take two inputs from a user (old location and new location). It will have two tables with a 1:M relationship with primary and foreign keys matching the old location. The application should then replace all instances in both tables of the old location with the new location.

I've put the form together and got the fields in both tables displaying in grids, both textboxes present and an "Update Records" submit button.

My problem is that my textboxes are greyed out when I select "Form">"Run Form" and I can't input anything.

Does anyone have any ideas why the boxes would be greyed out? I checked in Properties > Data > Read only and they are both marked as .F.

Thanks so much for your help!

*edit: Figured it out- Had ControlSource on because I thought that would bind the input to a specific field in a specific table. Never mind! :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

稚气少女 2024-11-23 23:07:07

想通了-启用了 ControlSource,因为我认为这会将输入绑定到特定表中的特定字段。没关系! :)

Figured it out- Had ControlSource on because I thought that would bind the input to a specific field in a specific table. Never mind! :)

西瑶 2024-11-23 23:07:07

凯特

顺便说一句。文本框可能因多种原因而变灰,最明显的原因是属性设置为 readonly = .t。或enabled = .f.,而且如果文本框绑定到数据源并且该源不可用。

即表为 EMPTY 或者是 EOF() 或 BOF()

Kate

Just as an aside. the text boxes can be greyed out for a number of reasons, the most obvious ones are property set to readonly = .t. or enabled = .f., but also if the text box is bound to a datasource and that source is not available.

i.e the table EMPTY or is EOF() or BOF()

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文