EndsWith and StartsWith

Report any Hollywood bugs here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

EndsWith and StartsWith

Post by djrikki »

Code: Select all

bool = EndsWith(s$, substr$[, casesen, encoding])
This function can be used to check if s$ ends on the substring specified by substr$. If it does, True is returned, False otherwise. If the optional argument casesen is set to False, the strings do not have to match in case.
The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.
In my experience the first two arguments are the opposite way around:

Code: Select all

bool = EndsWith(haystack$, needle$[, casesen, encoding])
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: EndsWith and StartsWith

Post by airsoftsoftwair »

Huh? It says the "function can be used to check if s$ ends on the substring specified by substr$" so s$ is the haystack and substr$ is the needle. So where is the problem?
Post Reply