I have a multi line sting I want to add the lines to rows but it all going on the one row at the moment
GuiControl,,MyListBoxVariable,|%string3%
Multi Line String to ListBox
Re: Multi Line String to ListBox
You need to replace the line breaks with a pipe | (the default delimiter):
or add the lines one by one:
Code: Select all
GuiControl,,MyListBoxVariable, % "|" . StrReplace(StrReplace(string3, "`r`n", "`n"), "`n", "|")
Code: Select all
GuiControl, , LB, | ; clear the listbox
Loop, Parse, string3, `n, `r
GuiControl, , LB, %A_LoopField%
Re: Multi Line String to ListBox
Great thanks !
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], peter_ahk and 363 guests