LB Booster
« Remchar$() »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:30am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Remchar$()  (Read 150 times)
Cheemag
New Member
Image


member is offline

Avatar




PM


Posts: 16
xx 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 !

--


User IP Logged

Regards,

Cheemag
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Remchar$()
« Reply #1 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.
« Last Edit: Mar 7th, 2018, 9:00pm by Richard Russell » User IP Logged

Cheemag
New Member
Image


member is offline

Avatar




PM


Posts: 16
xx Re: Remchar$()
« Reply #2 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.

« Last Edit: Mar 8th, 2018, 1:43pm by Cheemag » User IP Logged

Regards,

Cheemag
Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Re: Remchar$()
« Reply #3 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.
User IP Logged

tsh73
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 210
xx 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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:

User Image
User IP Logged

Cheemag
New Member
Image


member is offline

Avatar




PM


Posts: 16
xx 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:

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.
User IP Logged

Regards,

Cheemag
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls