GetCurrentSelections
如果使用选项,您需要指定
如果选择除两个值以外的所有值,或除一个值以外的所有值,则分别使用格式“
Syntax:
GetCurrentSelections ([record_sep [,tag_sep [,value_sep [,max_values]]]])
Return data type: 字符串
Arguments:
参数 | 说明 |
---|---|
|
要置于两个字段记录之间的分隔符。默认分隔符为 |
|
要置于字段名标记和字段值之间的分隔符。默认分隔符为“: ”。 |
|
置于字段值之间的分隔符。默认分隔符为“,”。 |
|
将会单独列出字段值的最大数字。当选择更大的字段值数量时,会改用“x 个值,共 y 个”格式。默认值为 6。 |
Examples and results:
以下示例使用两个加载到不同列表框的字段,一个用于 First name 名称,另一个用于 Initials。
示例 | 结果 |
---|---|
假定选择 John(在 First name 中)。 GetCurrentSelections () |
|
假定已在 First name 中选择 John 和 Peter。 GetCurrentSelections () |
|
假定在 First name 中选择 John,并在 Initials 中选择 GetCurrentSelections () |
|
假定在 First name 中选择 John,并在 Initials 中选择 GetCurrentSelections ( chr(13)&chr(10) , ' = ' ) |
|
假定已在 First name 中选择除 Sue 以外的所有名称,并且在 Initials 中没有选择项。 =GetCurrentSelections(chr(13)&chr(10),'=',',',3) |
|
示例中所使用的数据:
Names:
LOAD * inline [
"First name"|"Last name"|Initials|"Has cellphone"
John|Anderson|JA|Yes
Sue|Brown|SB|Yes
Mark|Carr|MC |No
Peter|Devonshire|PD|No
Jane|Elliot|JE|Yes
Peter|Franc|PF|Yes ] (delimiter is '|');