'ReplChar replaces a delimiter throughout a delimited string
'(actually it will replace any occurrence of a specified character)
'This is helpful for switching from comma to tab delimiter for example
'mydelimitedstring is the original delimited string
'olddelimiter is a single character, the original delimiter to be replaced
'newdelimiter is a single character, replacing the original throughout the string
'returnbuffer is character buffer initialized to a length long enough to hold
' the original string
'ibuffersize is the initialized size of the return buffer
'the function returns an integer representing the string length
Declare Function ReplChar Lib "Mystring.dll" (ByVal mydelimitedstring As String, ByVal olddelimiter As String, ByVal newdelimiter As String, ByVal returnbuffer As String, ByVal ibuffersize As Integer) As Integer
'**************************************
'GetEntry accepts a delimited string and puts a desired entry into a return buffer
'mydelimitedstring is the whole delimited string
'delimiterstring is the sequence of character(s) that separates each entry
'idelimiterlength is the number of characters in the delimiter sequence
'ientrynumber is the number of the desired entry in the character string
'entrybuffer is a buffer (initialized to Space$(255)) into which the desired entry is placed
'ibuffersize is the size the buffer is initialized to ex. 255, above
'the function returns an integer which identifies the character length of the entry returned
Declare Function GetEntry Lib "Mystring.dll" (ByVal mydelimitedstring As String, ByVal delimiterstring As String, ByVal idelimiterlength As Integer, ByVal ientrynumber As Integer, ByVal entrybuffer As String, ByVal ibuffersize As Integer) As Integer