System.String:Format limited to 3 input in progress 4gl?

Status
Not open for further replies.
S

Sebastien DErrico

Guest
Is the function System.String:Format is limited to 3 input?

When I do:

DISPLAY System.String:Format("~{0~} ~{1~} ~{2~}", 0, 1, 2).


Everything is fine.

But when I do:

DISPLAY System.String:Format("~{0~} ~{1~} ~{2~} ~{3~}", 0, 1, 2, 3).


I get a compile error:

Impossible to find a method 'Format' with a compatible signature from class 'System.String'. (14457)


I found a workaround that looks like:

System.String:Format("~{0~} ~{1~} ~{2~}", 0, 1, System.String:Format("~{0~} ~{1~} ~{2~}", 2, 3, System.String:Format("~{0~} ~{1~} ~{2~}", 4, 5, 6))).


But I do not found it elegant.

Thank you! Sebastien

Continue reading...
 
Status
Not open for further replies.
Top