Integra for Notes Banner
  QuickReports Integra4Notes Integra Family of Products

Integra Script Library Documentation


Context:

Function

Library/Class:

Utilities



Function GetRandomFileName() As

GetRandomFileName (FilePath As String, FilePreFix As String, FileExtention As String, forceRND As Integer) As String

This function will return a random and unique path-file-name.

Parameters:

    FilePath (String)
      Default path (directory) in which the file will be created.
    FilePreFix (String)
      Defines a fixed prefix for the random filename.
    FileExtention (String)
      Defines the extention of the file that will be created.
    forceRND (Integer)
      True or False. If True, the function will always add a random number to the given FilePreFix, otherwise it will first check if the given parameters result in a valid and unique path-file-name before adding a random number.

Return Value:
    String.

    Sample:
     



      Dim fnam As String
    fnam = GetRandomFileName(“c:\”,”Integra”,”txt”,False)

    Call MessageDialog(fnam,0,”Random File Name”)
     

 
QUICK LINKS
 
 

 

  © Shireburn Software Ltd. 2008 - 2024