Eric,
Thank you so much for your help.
>You may want call a API function. This is VB6 code:
>
>
>Private Declare Function GetTempFileName _
> Lib "kernel32" _
> Alias "GetTempFileNameA" _
> (ByVal lpszPath As String, _
> ByVal lpPrefixString As String, _
> ByVal wUnique As Long, _
> ByVal lpTempFileName As String) As Long
>
>Private Sub Form_Load()
>Dim lngReturn As Long
>Dim strBuffer As String
>Dim strPath As String
>
> strBuffer = String$(255, 0)
> lngReturn = GetTempFileName(strPath, "EM", 0, ByVal strBuffer)
> MsgBox "You could use this string as a temp filename: " & Left$(strBuffer, lngReturn)
>
>End Sub
>
>
>
>>I read the help on this method and it indicates that the method will create a temp file (probably on the temp drive). But I need to create a unique string which I will pass to VFP stored procedure that will create a table of that name.
>>But anyway, thank you for your help.
>>
>>>Have you tried Path.GetTempFileName ?
>>>
>>>>I need to create a unique file name similar to way it is done with
>>>>
>>>>SUBSTR(SYS(2015), 3, 10)
>>>>
in VFP.
>>>>
>>>>Is there such a thing in .NET?
>>>>
>>>>Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham