Specifications

CHAPTER 24 DataWindow Expression and InfoMaker Functions
Users Guide 725
PosA
Description Finds one string within another string.
Syntax PosA ( string1, string2 {, start } )
Return value Long. Returns a long whose value is the starting position of the first occurrence
of string2 in string1 after the position in bytes specified in start. If string2 is
not found in string1 or if start is not within string1,
PosA returns 0.
Usage PosA replaces the functionality that Pos had in DBCS environments in
InfoMaker 9. In SBCS environments,
Pos and PosA return the same results.
See also LastPos
LeftA
MidA
Pos
RightA
ProfileInt
Description Obtains the integer value of a setting in the specified profile file.
Syntax ProfileInt ( filename, section, key, default )
Argument Description
string1 The string in which you want to find string2.
string2 The string you want to find in string1.
start
(optional)
A long indicating the position in bytes where the search will begin
in string. The default is 1.
Argument Description
filename A string whose value is the name of the profile file. If you do not
specify a full path, ProfileInt uses the operating system’s standard
file search order to find the file.
section A string whose value is the name of a group of related values in the
profile file. In the file, section names are in square brackets. Do not
include the brackets in section. Section is not case sensitive.