Alcune funzioni utili per il linguaggio di programmazione VB6.
Private Function CloseApplication() 'Chiusura Applicazione End End Function
Private Function CopyFile(strFileSource As String, strFileDestination As String) 'Copia file FileCopy strFileSource, strFileDestination End Function
Private Function RenameFile(strFileSource As String, strFileDestination As String) 'Rinomimazione file Name strFileSource As strFileDestination End Function
Private Function DeleteFile(strFile As String) 'Eliminazione file Kill strFile End Function
Dim date1 As Date date1 = Now() Dim str1 As String str1 = Format$(date1, "yyyy-mm-dd")
Attezione per utilizzare la classe Dictionary รจ necessario aggiungere la reference “Microsoft Scripting Runtime” (SCRRUN.DLL)
Dim hashtable1 As New Dictionary hashtable1.Add "Lion", "Mencken" hashtable1.Add "Tiger", "Rexroth"