Thanks, that works great!
Jerry
>>Is there a function that will return a unique name? I am looking for something like VFP's SYS(2015) function. I want to generate a unique/random name so I can use it for creating a temporary file used to capture some output.
>
>Try this:
>
>
> ' Return a random file name
> Public Shared Function GenerateFileName() As String
> Dim lcGuid As String
> lcGuid = Guid.NewGuid.ToString()
> Return lcGuid
> End Function
>