PalStrScanReverse

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber PalStrScanReverse( SalString lsSource,
		          SalNumber nStartPos,
		          SalString sSearchFor )

Method PalStrScanReverse copies the behaviour of VisStrScanReverse. PalStrScanReverse is a way to handle double byte environment. In a double byte environment the PalStrScanReverse should be used. This is because VisStrScanReverse is working with bytes rather than characters.

Parameters

Name Description
SalString lsSource String to scan.
SalNumber nStartPos Position in source string to start search from specify -1 to start from the last character.
SalString sSearchFor String which to search for in source string.

Returns

Position in string where the last occurrence of str was found, or -1 if not found.