yab | yet another Basic for HAIKU
That's funny - Printable Version

+- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum)
+-- Forum: installing / troubleshooting / feature requests (https://yab.orgfree.com/forum/forumdisplay.php?fid=5)
+--- Forum: Fixing yab (https://yab.orgfree.com/forum/forumdisplay.php?fid=7)
+--- Thread: That's funny (/showthread.php?tid=87)



That's funny - clasqm - 05-09-2017

Haven't seen this before: I'm filling a listbox with content

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.


RE: That's funny - bbjimmy - 05-10-2017

(05-09-2017, 01:48 PM)clasqm Wrote: Haven't seen this before: I'm filling a listbox with content

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
...

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.
I looked at the yab source and this is not comming from yab. it must be comming from BListView.


Free Web Hosting