Cancel
Showing results for 
Search instead for 
Did you mean: 

Object Comment : Return to the line

Legend
Legend

Hello everyone, 

 

I'm printing a kind of a summary on my frame thanks to the object "Comment".

Something like this : 

mySummary : string := 
" Value 1 : " + to_str(val1) + 
" Value 2 : " + to_str(val2) + 
" Value 3 : " + to_str(val3) ;

myComment.text := mySummary ;

 But the result looks like this : 

 Value 1 : Val1 Value 2 : val2 Value 3 : val3 

What I'm looking for is to display the summary list a list 

Value 1 : Val1 
Value 2 : val2
Value 3 : val3

 How can I force to line break  ? 

 

Thank you very much ! 

 

BR

O.C

2 REPLIES

Re: Object Comment : Return to the line

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
try chr(10) --> see help
this includes line breaks into your text
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Object Comment : Return to the line

Legend
Legend
Thank you very much !
It's exaclty what I was looking for !

BR
O.C