Author |
Topic: How to use FNfindreplace (Read 563 times) |
|
yshua
Developer
member is offline


Posts: 7
|
 |
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
|
« Last Edit: Mar 15th, 2012, 01:09am by yshua » |
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
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.
|
|
Logged
|
|
|
|
|