Author |
Topic: Remchar$() (Read 150 times) |
|
Cheemag
New Member
member is offline
Posts: 16
|
|
Remchar$()
« Thread started on: Mar 7th, 2018, 6:33pm » |
|
print remchar$("thze emerjgenczy broawdcast sysztem", "zjw") returns an error in LBB but works in LB.
Damned inconvenient !
--
|
|
Logged
|
Regards,
Cheemag
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Remchar$()
« Reply #1 on: Mar 7th, 2018, 8:59pm » |
|
on Mar 7th, 2018, 6:33pm, Cheemag wrote: ---> RTFM <---
Code: print remchar$("thze emerjgenczy broawdcast sysztem", "zjw")
'include lb45func.bas Richard.
|
|
|
|
Cheemag
New Member
member is offline
Posts: 16
|
|
Re: Remchar$()
« Reply #2 on: Mar 8th, 2018, 1:43pm » |
|
on Mar 7th, 2018, 8:59pm, Richard Russell wrote:
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.
|
« Last Edit: Mar 8th, 2018, 1:43pm by Cheemag » |
Logged
|
Regards,
Cheemag
|
|
|
Alincon
Full Member
member is offline
Posts: 147
|
|
Re: Remchar$()
« Reply #3 on: Mar 8th, 2018, 2:10pm » |
|
You need to have this as the last statement in your code: Code: DO include the ' as the first character DO NOT indent
r.m.
|
|
Logged
|
|
|
|
tsh73
Full Member
member is offline
Gender:
Posts: 210
|
|
Re: Remchar$()
« Reply #4 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.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Remchar$()
« Reply #5 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:
|
|
Logged
|
|
|
|
Cheemag
New Member
member is offline
Posts: 16
|
|
Re: Remchar$()
« Reply #6 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:
|
|
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.
|
|
Logged
|
Regards,
Cheemag
|
|
|
|