如何向正在进行的ocx组合框动态添加值4gl

问题描述 投票:-4回答:1

[尝试将值从数据库字段添加到ocx组合框。如果您在其中键入值,它将为您提供匹配的值。

openedge progress-4gl
1个回答
0
投票

您可以使用旧的“ COM对象查看器”查看ocx。它可以在“ ProTools”中找到。

CSCombo32.ocx通常在/ bin / system下找到。不过,仅在32位安装上。

enter image description here

您可以看到AddItem带有字符串和索引。索引是可选的。

 DEFINE VARIABLE i AS INTEGER     NO-UNDO.
 i =  chCtrlFrame:CSCombobox:AddItem("Hello").

 MESSAGE "Hello added at position " i VIEW-AS ALERT-BOX.

通过调用Value()来获取值:

MESSAGE chCtrlFrame:CSCombobox:Value().
© www.soinside.com 2019 - 2024. All rights reserved.