contents.gifprev1.gifnext1.gif

FSTRING() - Locate string

Find a string within a string and returns the location(s) .

Returns

Integer value if successful. If an error occurs, this function returns a zero.

Arguments

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

PowerBuilder Function declaration

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

Visual Basic Function declaration

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

32 bit DLL declarations

PowerBuilder Function declaration

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

Visual Basic Function declaration

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

Example:

dString
=
"The most important test of all"

dFind
=
"important"

Result: 10