LB Booster
Programming >> Compatibility with LB4 >> Remchar$()
http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1520451206

Remchar$()
Post by Cheemag on Mar 7th, 2018, 6:33pm

print remchar$("thze emerjgenczy broawdcast sysztem", "zjw") returns an error in LBB but works in LB.

Damned inconvenient !

--



Re: Remchar$()
Post by Richard Russell on Mar 7th, 2018, 8:59pm

on Mar 7th, 2018, 6:33pm, Cheemag wrote:
Damned inconvenient !

---> RTFM <---

Code:
    print remchar$("thze emerjgenczy broawdcast sysztem", "zjw")
    'include lb45func.bas 

Richard.

Re: Remchar$()
Post by Cheemag on Mar 8th, 2018, 1:43pm

on Mar 7th, 2018, 8:59pm, Richard Russell wrote:
---> RTFM <---


LBB.chm: Search LB45func - No topic found

LBB.chm: Search remchr$ - No topic found

So where do I find how to use the function ? (Although it seems to be implied that LBB3.1 does not need to use the function.


Re: Remchar$()
Post by Alincon on Mar 8th, 2018, 2:10pm

You need to have this as the last statement in your code:
Code:
'include lb45func.bas
 

DO include the ' as the first character
DO NOT indent

r.m.
Re: Remchar$()
Post by tsh73 on Mar 8th, 2018, 6:31pm

Quote:
LBB.chm: Search LB45func - No topic found

LBB 3.10:
help | search | LB45func
finds page "Liberty BASIC 4.5.0"
with text Quote:
The new LB 4.5.0 functions are made available through the supplied library file lb45func.bas.


so search finds it - for me.

Re: Remchar$()
Post by Richard Russell on Mar 8th, 2018, 6:32pm

on Mar 8th, 2018, 1:43pm, Cheemag wrote:
LBB.chm: Search remchr$ - No topic found

That's because the function is called remchar$ not remchr$! If you search for the correct keyword it finds it perfectly OK:

User Image

Re: Remchar$()
Post by Cheemag on Mar 9th, 2018, 09:49am

on Mar 8th, 2018, 6:32pm, Richard Russell wrote:
That's because the function is called remchar$ not remchr$! If you search for the correct keyword it finds it perfectly OK:

User Image


Right. My fault as regards the search.

I found the lib file after upgrading to the latest LBB, but couldn't get it to work with a simple include, so I cut and pasted the function from the library into the programme. (After having done the same thing with a for/next loop and if instr() then next).

Thanks to all who responded.