共用方式為


Text.Repeat

語法

Text.Repeat(text as nullable text, count as number) as nullable text

關於

傳回由輸入文字 text 重複 count 次所組成的文字值。

範例 1

將文字 "a" 重複五次。

使用方式

Text.Repeat("a", 5)

輸出

"aaaaa"

範例 2

將文字 "helloworld" 重複三次。

使用方式

Text.Repeat("helloworld.", 3)

輸出

"helloworld.helloworld.helloworld."