function lefttext(arg, token)
	{
    // November 9, 1999 - Code Dynamics (c) - Byron J. Curlee
    // Returns the text in 'arg' to the left of 'token' from left to right.
    // lefttext('C:\Root\Sub-root\File.txt', '\') will return the string 'C:'.

	if (isinstr(arg, token))
		{
		return arg.substring(0, arg.indexOf(token, 0));
		}
	return arg;
	}
