Guus2005
AWF VIP
- Local time
- Today, 02:14
- Joined
- Jun 26, 2007
- Messages
- 2,631
What's the criterium for creating a class when i also could create a set of functions?
The use for the above code is clear. It turns off the hourglass even when you have forgotten to do it. When exiting the function in which it was created the class terminated automatically.
I have an applicants application where resume's, photo's and minutes are stored.
I want to create a directory structure for my program in which it can store export and saved files. It is a set of 7 subdirectories which reside on the applicants directory which must be created automatically.
I can create a Class or set of functions to create the directory tree, copy, delete and open files to/from the applicants subdirectory.
Is there a rule which states that when done/wanted that, do this?
Thx 4 your time.
Code:
'My clsHourglass class
Option Compare Database
Option Explicit
'This class sets the hourglass on and off, even when forgotten.
Private Sub Class_Terminate()
HourGlassOff
End Sub
Public Sub HourGlassOn()
DoCmd.Hourglass True
End Sub
Public Sub HourGlassOff()
DoCmd.Hourglass False
End Sub
I have an applicants application where resume's, photo's and minutes are stored.
I want to create a directory structure for my program in which it can store export and saved files. It is a set of 7 subdirectories which reside on the applicants directory which must be created automatically.
I can create a Class or set of functions to create the directory tree, copy, delete and open files to/from the applicants subdirectory.
Is there a rule which states that when done/wanted that, do this?
Thx 4 your time.