contents.gifprev1.gifnext1.gif

FSTR() - Find string

Find a string within a string and return the remainder of this string.

Returns

String value if successful. If an error occurs, this function returns spaces.

Arguments

Type
Field
Description
string
dString
String of text
string
dFind
String to be found
16 bit DLL declarations

PowerBuilder Function declaration

function string FSTR(string dString, string dFind) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function FSTR lib "IFL16" (ByVal dString As String, ByVal dFind As String) As String

32 bit DLL declarations

PowerBuilder Function declaration

function string FSTR(string dString, string dFind) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function FSTR lib "IFL32" (ByVal dString As String, ByVal dFind As String) As String

Example:

dString
=
"The most important test of all"

dFind
=
"important"

Result: "test of all"