Search found 12 matches

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: 4196

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: 4196

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: 4196

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: 4196

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: 5639

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...
by flotul
Tue Mar 01, 2022 2:33 pm
Forum: Compatibility with LB4
Topic: Opening multiple windows
Replies: 2
Views: 5639

Opening multiple windows

Hi All, I have taken a "bad habit" by always using LBB to make my programs ;) But when it comes to a problem I can't solve by myself and need help that might come from the LB forum, I have to go "back" to LB. I have made a program that will use multiple windows, 3 in all but for ...
by flotul
Tue Jan 25, 2022 3:20 pm
Forum: General Board
Topic: Having troubble to embed files for exectuable
Replies: 3
Views: 5194

Re: Having troubble to embed files for exectuable

I tried to launch the app as admin but there's no change. It does work when installed in a "real" public folder. That's so curious... there must have been a change lately but where and what????? I can leave with.... Happy for you to see it's not related to the magnificent LBB ;-) Have a ni...
by flotul
Tue Jan 25, 2022 10:17 am
Forum: General Board
Topic: Having troubble to embed files for exectuable
Replies: 3
Views: 5194

Re: Having troubble to embed files for exectuable

For a test, I made the exectuable as usual and copied it to another PC and it works normally.

So the problem must be in my PC.

But what can it be please?
by flotul
Tue Jan 25, 2022 9:41 am
Forum: General Board
Topic: Having troubble to embed files for exectuable
Replies: 3
Views: 5194

Having troubble to embed files for exectuable

Hi There, This is a problem I've never had before. I use the same LB 3.10 as always, the same editor as always and the problem is new. I can make an executable and embed files (bmp and pdf); LB does its job fine as always. When it comes to launch the exectuable in another directory than the one it w...
by flotul
Tue Jan 19, 2021 6:53 pm
Forum: Suggestion Box
Topic: Show faulty file(s) and line(s) while compiling
Replies: 3
Views: 11478

Show faulty file(s) and line(s) while compiling

No, the indicated line numbers are not helpfull at all since it can happen in any included file - so no clue where the error can be :cry: Moreover, once you start to use LBB only, some small syntax differences between LB and LBB don't make it easy to compile in LB and boost with LBB as it should. Wa...