Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get last 5 lines?
#3
Gintaras Wrote:Macro Macro1581
Code:
Copy      Help
str s=
;aaaa
;bbbbbbb
;cccccc
;dddddddd
;eeeeeeee
;ffffffff
;gggggggg
;hhhhhh

int n=numlines(s)
if(n>5) s.getl(s n-5 2)

out s

Thanks that helped a lot, now I'm having an issue with adding the list to my Listbox.

I've tried using:
LB_Add id(6 hDlg) s

But it doesn't add a linebreak in the list and displays as: WETYWTGG45235TFHEHRJFHRTHYRT5HFHFH6
Instead of:
WETYWTGG
45235TFH
EHRJF
HRTHYRT5
HFHFH6

Any help?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)