<?xml version="1.0" encoding="utf-16"?>
<Function xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.caseware-idea.com/">
    <Author>Brian.Element</Author>
    <DateModified>2012-10-22</DateModified>
    <FunctionName>TrimStart</FunctionName>
    <Help>This Custom Function will trim the leading characters from a field.</Help>
    <OutputType>Character</OutputType>
    <FunctionBody>Option Explicit
Function TrimStart(p1 As String,p2 As String) As String

	Dim i As Integer
	Dim tempString
	tempString = p1
	For i = 1 To Len(p1)
		If Mid(p1,i,1) = p2 Then
			tempString = Mid(p1,i + 1,Len(p1) - i)
		Else
			TrimStart = tempString
			Exit for
		End If
	Next i
End Function
</FunctionBody>
    <Parameters>
        <Parameter>
            <Type>Character</Type>
            <Name>p1</Name>
            <Help>field to trim</Help>
        </Parameter>
        <Parameter>
            <Type>Character</Type>
            <Name>p2</Name>
            <Help>charcter to be trimmed</Help>
        </Parameter>
    </Parameters>
</Function>