_StringDuplication

首页  后退  前进

_StringDuplication
down2

重复预定次数的字符串

 

_StringDuplication('string',count)

 

参数

string

所使用的字符串

count

重复次数(正数)。

返回值

返回倍数字符串指定次数。

注释:

 

该函数可以通过命令调用 exect

参见:

StringLeft, StringTrimLeft, StringTrimRight, StringMid, StringLen, StringInStr

例子
copy

exect=$var_aa=StringSplit(_StringDuplication('blue-red|red-blue|',10),'|',1) GLOBALEXECT<$var_aa> <FOR> 1 <TO> 5 exect=$var_s=$var_aa[:INDEX:] exect=_ViewValues('$var_s') <NEXT> ;; 从复制的字符串创建数组a并将元素传送到数组e的示例

 

exect=$var_s=_StringDuplication('blue-red|red-blue|',10) exect=_ViewValues('$var_s') ;; 行重复的例子

 

exect=$var_s=_StringDuplication('字符串',10) exect=_ViewValues('$var_s') ;; 行重复的例子

 

exect=$var_s=_StringDuplication('字符串'&@CRLF,10) exect=_ViewValues('$var_s') ;; 行重复的例子

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru