Never mind, I just fixed my own problem.
VB Code:
Public Function Devour(ByVal FullFileName As String) As Long Dim ReturnedString As String * 256 Dim ReturnedSize As Long ReturnedSize = GetPrivateProfileString ("Properties", "WorkStation", "", ReturnedString, 256, FullFileName) End Function
You have to give the string a length.![]()




Reply With Quote