Repeat - ObjectVision/GeoDMS GitHub Wiki

String functions repeat

syntax

  • repeat(string_dataitem, number)

definition

repeat(string_dataitem, number) repeats number (of) times the values of string_dataitem.

applies to

conditions

The domain unit of data items string_dataitem and number must match (literals or parameters can be compared to data items of any domain unit).

since version

5.35

example

attribute<string> repeatA (ADomain) := repeat(A, nr);
A nr repeatA
'0' 0
'1' 1 '1'
'2' 2 '22'
'3' 3 '333'
'4' 4 '4444'

ADomain, nr of rows = 5

⚠️ **GitHub.com Fallback** ⚠️