首页 > 其他 > 详细

Skill 两个 listBox 数据交换的模板

时间:2020-12-06 22:40:15      阅读:53      评论:0      收藏:0      [点我收藏+]

https://www.cnblogs.com/yeungchie/

  • code
prog((LBL LBR BL BR tempForm)
    LBL = hiCreateListBoxField(
        ?name       ‘LBL
        ?choices    list("A" "B" "C")
        ?multipleSelect t
    )
    LBR = hiCreateListBoxField(
        ?name       ‘LBR
        ?choices    list("D" "E" "F")
        ?multipleSelect t
    )
    BL = hiCreateFormButton(
        ?name       ‘BL
        ?buttonText "->"
        ?callback   "L2R"
    )
    BR = hiCreateFormButton(
        ?name       ‘BR
        ?buttonText "<-"
        ?callback   "R2L"
    )
    tempForm = hiCreateAppForm(
        ?name   ‘tempForm
        ?fields list(LBL LBR BL BR)
    )
    hiDisplayForm(tempForm)
)
procedure(L2R()
    tempForm~>LBR~>choices = append(tempForm~>LBR~>choices tempForm~>LBL~>value)
    tempForm~>LBL~>choices = setof(x tempForm~>LBL~>choices !member(x tempForm~>LBL~>value))
)
procedure(R2L()
    tempForm~>LBL~>choices = append(tempForm~>LBL~>choices tempForm~>LBR~>value)
    tempForm~>LBR~>choices = setof(x tempForm~>LBR~>choices !member(x tempForm~>LBR~>value))
)
  • show
    技术分享图片

Skill 两个 listBox 数据交换的模板

原文:https://www.cnblogs.com/yeungchie/p/14082888.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!