【问题标题】:Get combo-box (list-item-pairs) both selected-text and value in Progress 4gl获取Progress 4gl中的选定文本和值的组合框(列表项对)
【发布时间】:2014-06-16 20:53:45
【问题描述】:

我可以同时拥有组合框的“选择文本”和“值”吗?

示例: 名为 cb 的组合框具有此值(已选择 List-Item-Pairs)

text1,1,
text2,2,
text3,3

当我选择 text1 时,我想同时获得 text11 。我有值(在这种情况下为 1)但我无法获得 text1。

我已经尝试过 value、selection-text、input-value 但它不起作用。

【问题讨论】:

    标签: progress-4gl openedge


    【解决方案1】:

    这是你需要的:

    MESSAGE 
       ENTRY(LOOKUP(SELF:SCREEN-VALUE, SELF:LIST-ITEM-PAIRS),     SELF:LIST-ITEM-PAIRS)    
       ENTRY(LOOKUP(SELF:SCREEN-VALUE, SELF:LIST-ITEM-PAIRS) - 1, SELF:LIST-ITEM-PAIRS)
      VIEW-AS ALERT-BOX INFO BUTTON OK.    
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-04
      • 1970-01-01
      • 1970-01-01
      • 2011-08-28
      • 1970-01-01
      • 2011-08-23
      相关资源
      最近更新 更多