I tried to insert environment.New Line in between the string, but it’s now working as expected.
Thanks in advance!!!
I tried to insert environment.New Line in between the string, but it’s now working as expected.
Thanks in advance!!!
Hello @AnoopMP,
Please use Environment.NewLine
@Rishabh_Lakhera i’ve tried that and that’s not working, Can u suggest if me where i got wrong?
I’ve added the entry in dataTable as
Please correct the errors highlighted in Screen.+Environment.NewLine+Once you have corrected all errors, Click ‘OK’.
And when tried it to display using message box activity, it is getting displayed as such.
Try using \n for new line
Try,
“this is first line” + “\n” + “this is second line”
OR
“this is first line” & vbnewline & “this is second line”
OR try following other ways,
Environment.NewLine or vbCrLf or Constants.vbCrLf
I think as the column is of string type ,whatever you write inside it will be treated as a string.
I tried putting an integer variable there, it still doesn’t interpret it as a variable it is just assuming it to be a string and printing it as it is.
@RupeshGonte Tried all those, still it’s having same issue.
I’ve uploaded the xml. Can u please help?MainPage.xaml (6.5 KB)
@Rishabh_Lakhera Yeah…Same reason i guess… Any workaround available for that?
Hi @AnoopMP,
I have idea, that you use “add data row” to add variable to datatable
p/s: wait me a sec to upload xaml
regards
I’ve tried all those @AnoopMP doesn’t seem to work!
Although if this is what you’re trying to achieve , this is how i did it
Main.xaml (9.9 KB)
Whatever you write in the Message info is converted into string by:
Text=“[DTOutput.Rows(0).Item(0).ToString]”
One solution I see is to include spaces, as in any window sizes, size of popup box won’t change.
hi @AnoopMP,
Does my case help u?
Hi @AnoopMP
You can simply write \n instead of Environement.NewLine in your data row message.
Then you can Replace \n with Environment.NewLine at the time of usage.
Please refer this workflow Main (1).xaml (10.1 KB)
Thanks