Creates a relative path from BaseDirectory to Filename Creates a relative path from BaseDirectory to Filename. A trailing path delimiter of BaseDirectory is ignored. If there is no relative path it returns Filename. If BaseDirectory and Filename are the same and UsePointDirectory is false it returns the empty string. If UsePointDirectory is true it returns '.'. Duplicate path delimiters are treated as one. In other words if it returns a relative file name then the following is true: TrimFilename(Filename) = TrimFilename(BaseDirectory+PathDelim+Result). This function is thread safe and therefore does not support current directories as needed by Windows file names like D:test. Splits parameters separated by one or more spaces.Parameters are separated by one or more spaces (#9,#10,#13,#32). Quotes are parsed as single parameter. if ReadBackslash=true then \" is replaced to " and not treated as quote. #0 is always end.