Enter (line break) only 1 time

I’ve already set the description (string) using assign activity and i use set text activity to wrote the description. I want the enter (line break) only 1 time, but the output give me 2 enter (line break). i have try Vbnewline , environment.newline , vbcrlf, chr(10) , chr(13). but always give same result. anyone know how to solve this?

@randa_prakasa

try not giving anything ..looks like the next line you do normally in string is taken as new line already

Remove vbNewLine

cheers

1 Like

it doesn’t give a line break

1 Like

@randa_prakasa,

When you assign the string with new line in the expression editor, you don’t need newline characheter.

For example:

This

Hello
World

will be typed as it is.

1 Like

@randa_prakasa

to verify can you assign this value to a string variable and log it please

cheers

1 Like

more inportant is the field / system/ type of application where it is entered.

From the screenshot it looks like an editor, where the line starting with - XXX maybe is triggering the List mode and where each List item is triggering its own line break / Block end handling.

So can you tell us more details about on where the string is entered?
Thanks for support

When a Type Text into activity is involved then also check if manually entered test can be mimicked by using the “[k(Enter)]” approach for reflecting linebreaks typed in with Enter

UPD1 - answer enhancement

yeahh i found the problem. it has extra line break bcs its editor text box. so i need to use Type Into Activity instead of Set Text activity. and need to combine with “[k(enter)]”.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.