BBC BASIC for Windows
« How to use FNfindreplace »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:32pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: How to use FNfindreplace  (Read 563 times)
yshua
Developer

member is offline

Avatar




PM


Posts: 7
xx How to use FNfindreplace
« Thread started on: Mar 15th, 2012, 01:06am »

Dear Richard:
After the, "INSTALL @lib$+"STRINGLIB.BBC"" line, the following lines,
text$ = "The quick brown fox"
num% = FNfindreplace(text$, "brown", "silver", 0)
PRINT text$,
gave the following error,
"NO SUCH FN/PROC".

am still learning the BBC BASIC ropes, without many programming examples of how to use PROC's and FN's with libraries....

Please avoid stressing over such a minor question,
Yshua smiley
« Last Edit: Mar 15th, 2012, 01:09am by yshua » User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: How to use FNfindreplace
« Reply #1 on: Mar 15th, 2012, 09:04am »

on Mar 15th, 2012, 01:06am, yshua wrote:
Code:
        num% = FNfindreplace(text$, "brown", "silver", 0) 

gave the following error "NO SUCH FN/PROC".

The function name includes an underscore:

FN_findreplace()

Although it's not a universal rule, PROC and FN names in libraries frequently begin with an underscore to reduce the likelihood of 'clashing' with a user function.

Richard.
User IP Logged

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