LINE BREAK - Forum

Forum Navigation
You need to log in to create posts and topics.

LINE BREAK

HELLO, I AM MAKING AN APP THAT CALCULATES THE VALUE OF THE INSTALLMENTS OF A LOAN. ONE OF THE OPTIONS IS TO MIX EACH QUOTA AND ITS VALUE IN A PARAGRAPH. BUT I CAN'T GET YOU TO SHOW THEM ONE ABOVE THE OTHER, THAT IS, EACH QUOTA WITH ITS LINE BREAK.
CODE:

SetVar [fin] 0
SetVar [texto] ""
SetVar [indice] 1
SetVar [final] [cuotas]
CreateEmptyArray [ARRAY]

While [indice] <= [final]
SetVar [cuotas] [indice]
If [radio] === "bronce"
tazabronce
Else
tazagold
EndIf

Math "[monto] * [interes]" 1 [total]
Math "[total] / [indice]" 0 [mensualwhats]

StrIns "[texto]" "[indice] cuotas de $[mensualwhats] /" 0 [texto] ------------------------->WRITE THE FEES


SetVar [indice] [indice]+1
EndWhile
OpenDialog "WHATSAPP"

 

BUT THE RESULT IS LIKE THIS
1 cuotas de $655 /2 cuotas de $373 /3 cuotas de $265 /4 cuotas de $218

AND I NEED IT LIKE THIS
1 cuotas de $655
2 cuotas de $373
3 cuotas de $265
4 cuotas de $218

THANK YOU AND FORGIVENESS FOR THE BAD ENGLISH, GREETINGS FROM ARGENTINA

 

@noguera49

I can not tell where the output is displayed; assuming it is in a container that displays html formatted text, try and replace the / in your StrIns command with the html element for line-break ... like this ...

StrIns "[texto]" "[indice] cuotas de $[mensualwhats] <br/>" 0 [texto] ------------------------->WRITE THE FEES

If it is just plain text, try and use \n OR \r\n

luishp and smartmedia have reacted to this post.
luishpsmartmedia

@noguera49 do as @gaev suggest but be sure your Container allows HTML stored into a Variable.

Two options:

1.Inject the content as HTML:

SetObjectHTML "Container1" "[texto]"

2.Set the Container ng-bind-html Advanced property to your variable [texto]