Search found 17 matches

by flotul
Wed Jun 04, 2025 9:12 pm
Forum: Debugger
Topic: "Missing , at line 0"
Replies: 1
Views: 433

"Missing , at line 0"

Hi, How do I find my mistake in my code when the error message "Missing , at line 0" appears at program launch? Even if I go into my program step by step using the debugger, the error message will popup at a certain time but I don't see what is causing it to appear and stop the program fro...
by flotul
Sun Mar 02, 2025 10:07 am
Forum: Compiler
Topic: LB window not closing on program exit
Replies: 2
Views: 4357

Re: LB window not closing on program exit

Okay, if I first close the temp window, everything closes in one click....
by flotul
Sun Mar 02, 2025 9:21 am
Forum: Compiler
Topic: LB window not closing on program exit
Replies: 2
Views: 4357

LB window not closing on program exit

Hi Richard, I often use ConTEXT to edit my programs. Since I'm willing to stay compatible LB/LBB, I alternatively test my programs with both of them. https://i.postimg.cc/rmhHFG5J/small.jpg Unfortunately, when trying with LBB, I can not get the temp file window closed when exiting while using LB, bo...
by flotul
Thu Feb 13, 2025 8:40 am
Forum: Liberty BASIC Language
Topic: Reading metadata (id3 tag) of *.mp3 files
Replies: 6
Views: 8200

Re: Reading metadata (id3 tag) of *.mp3 files

Thanks a lot, who ever you are 👍 I didn't expect to face that kind of difficulty which is far over my basic knowledge. Maybe I have to make another approach of what I'm aiming to do: a listview of mp3 file, three columns: filename, genre and bpm and sort them. I'll have a look at the API but my inex...
by flotul
Wed Feb 12, 2025 6:06 pm
Forum: Liberty BASIC Language
Topic: Reading metadata (id3 tag) of *.mp3 files
Replies: 6
Views: 8200

Reading metadata (id3 tag) of *.mp3 files

Hi there, I'm trying to extract some metadata from *.mp3 files such as BMP and Genre information. I have made a very short test song (attachment) where the Genre is "Pop" and the BPM is "92". Looking at this audio file with an hex editor, here is what I get: https://i.postimg.cc/...
by flotul
Sat Sep 17, 2022 10:39 am
Forum: Liberty BASIC Language
Topic: Can't get TRIM$() nor replstr$() to work
Replies: 4
Views: 8230

Re: Can't get TRIM$() nor replstr$() to work

...just learned about the remchar$() that will do the job for me.

Didn't think about this one - never used before... :?
by flotul
Sat Sep 17, 2022 10:14 am
Forum: Liberty BASIC Language
Topic: Can't get TRIM$() nor replstr$() to work
Replies: 4
Views: 8230

Re: Can't get TRIM$() nor replstr$() to work

Hi, Yes, this works! print chr$(34); replstr$("Hello world!", "o", ""); chr$(34) 'include lb45func.bas But why won't this one do too? print chr$(34); replstr$(" 1 2 3", " ", ""); chr$(34) 'include lb45func.bas At least, it doesn't for me....
by flotul
Wed Sep 14, 2022 4:06 pm
Forum: Liberty BASIC Language
Topic: Can't get TRIM$() nor replstr$() to work
Replies: 4
Views: 8230

Re: Can't get TRIM$() nor replstr$() to work

My bad,

Using TRIM$(), the result is "1, 2, 3" (not " 1, 2, 3") wich is correct.

Still, replstr$() doesn't accept to replace a character by "nothing".

What is the best way to remove any space in a full string then?
by flotul
Wed Sep 14, 2022 3:51 pm
Forum: Liberty BASIC Language
Topic: Can't get TRIM$() nor replstr$() to work
Replies: 4
Views: 8230

Can't get TRIM$() nor replstr$() to work

Hi, Either code will give me the expected result I'd like to see: "1,2,3". DECString$ = " 1, 2, 3" DECString$ = TRIM$(DECString$) print DECString$ result: " 1, 2, 3" DECString$ = " 1, 2, 3" DECString$ = replstr$(DECString$, " ", "") print D...
by flotul
Tue Mar 01, 2022 7:33 pm
Forum: Compatibility with LB4
Topic: Opening multiple windows
Replies: 2
Views: 9095

Re: Opening multiple windows

Thanks. I read an article from Gordon SWEET (http://www.libertybasicuniversity.com/lbnews/nl112/multi.htm) and didn't understood why he used his "win1" "win2" etc "trackers". Now, you explaining it does make sense to me. I'll give it a try asap (tomorrow morning). Thank...