05-09-2017, 01:48 PM
Haven't seen this before: I'm filling a listbox with content
and when run, the program writes this to standard output, whether DEBUG=1 or not
It's not important, but I prefer my programs to output text only when I tell it to. This happens on Haiku href51123. I suspect it may be a Haiku rather than a yab error, but I thought I'd report it here anyway.
Code:
sub FillListbox()
local listing$, listing, w$(1)
listing$ = system$("ls -1 ~")
listing = token(listing$, w$(), "\n")
for f = 1 to listing
listbox add "TheList", f, w$(f)
next f
end sub
and when run, the program writes this to standard output, whether DEBUG=1 or not
Code:
Range: 241.000000 - 243.000000
Range: 56.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
Range: 108.000000 - 243.000000
It's not important, but I prefer my programs to output text only when I tell it to. This happens on Haiku href51123. I suspect it may be a Haiku rather than a yab error, but I thought I'd report it here anyway.