xHarbour Reference Documentation > Function Reference |
Extracts the remainder of a string before the last occurrance of a search string.
BeforAtNum( <cSearch> , ; <cString> , ; [<nCount>] , ; [<nSkipChars>] ) --> cResult
The function returns the remainder of <cString> before the <nCount>th occurrance of <cSearch> in the string.
BeforAtNum() begins searching <cSearch> in <cString> at the first plus <nSkipChars> characters. It terminates searching after <nCount> occurrances or after the last occurrance of <cSearch> and returns the remainder of <cString> to the left of the found string. The function recognizes the CSetAtMuPa() and SetAlike() settings.
See also: | AtNum(), AfterAtNum(), AtRepl(), NumAt(), CSetAtMuPa(), SetAtLike() |
Category: | CT:String manipulation , Character functions |
Source: | ct\atnum.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com