Files
harbour-core/contrib/hbnf/tests/at2.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

30 lines
599 B
Plaintext

#require "hbnf"
PROCEDURE Main()
LOCAL cSearch, cTarget, var0
CLS
? "TEST TO DEMONSTRATE EXAMPLES OF FT_AT2"
?
cSearch := "t"
? "Find occurrences of 't' in: "
cTarget := "This is the day that the Lord has made."
?? cTarget
?
var0 := ft_At2( cSearch, cTarget )
? PadR( "ft_At2( cSearch, cTarget ) -> ", 40 )
?? var0
?
var0 := ft_At2( cSearch, cTarget, 2 )
? PadR( "ft_At2( cSearch, cTarget, 2 ) -> ", 40 )
??var0
?
var0 := ft_At2( cSearch, cTarget, 2, .F. )
? PadR( "ft_At2( cSearch, cTarget, 2, .F. ) -> ", 40 )
??var0
?
RETURN