[futurebasic] Re: [FB] How to use some FN from FB 4 in FB 5

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2009 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Tue, 18 Aug 2009 00:48:08 +1200
Eugen Rosu wrote:

> I successfully used :
> FN DeleteAllCharInTextHandle( [@someText], 10 )
> or
> fn FindReplaceAllInHandle( [@someText], CHR$(10), CHR$(13) )
>
> a.s.o.
> They were fast enough.
>
> Now, I encounter a bleak message :
>
> Error: Unknow function in line .........
>
> It's any hope to use them again or something else ?


'-------------------
include "Util_Containers.incl"

begin globals
dim as container gContainer
end globals

window 1
text _monaco, 10
gContainer = "supercalifragilistic"
print gContainer
// replace s by S
fn ContainerFindAndReplacePascalString( gContainer, "s", "S", 0 ,  
_maxLong, 0 )
print gContainer
// delete s and S
fn ContainerFindAndReplacePascalString( gContainer, "s", "", 0 ,  
_maxLong, _kCFCompareCaseInsensitive )
print gContainer
do
HandleEvents
until ( gFBQuit )
'-------------------

Robert P.