Recurrent creation file name

xiaoxiao2021-03-06  55

Public Function GetName (Byval Name As String, Byval Num As String) AS String

DIM pathstring as string = "f: /" & name & num.tostring & ".txt"

IF file.exists (pathstring) THEN

Num = 1

Return GetName (Name, Num)

Else

File.create (pathstring)

Return PathString

END IF

END FUNCTION

转载请注明原文地址:https://www.9cbs.com/read-117178.html

New Post(0)