读书人

@picklist返回值,该怎么处理

发布时间: 2012-03-16 16:34:56 作者: rapoo

@picklist返回值
@picklist中如果不放参数single,得到的返回值会是一个数组,怎么样能得到这个数组中的每个元素?大大们多多帮帮忙啊


[解决办法]
帮助的例子中都有,假设域名或数组名是nlist,
@for(i:=1;i<@elements(nlist);i:=i+1;nlist[n])
[解决办法]
帮助文档中有关于@picklist的完整介绍,在example中的第一个例子,
1.This formula displays the Products view of PROD.NSF in a dialog box. If the user selects a Staple remover and Stapler from the products view, the temporary variable choice gets assigned the following text list: Staple remover; Stapler

choice:=@PickList( [CUSTOM] ; "" ; "Products" ; "Select a product" ; "Please select the products you want to order" ; 1 );

可以知道,如果用户在notes中多选了,则得到的多个返回值之间是以";"分隔的,
通过@Middle或@left对返回值进行分割即可以得到返回的各个值。

读书人网 >行业软件

热点推荐