Advertisement
Advertisement
| 06.09.2008 at 11:38AM PDT, ID: 23470056 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
this is the unload main reoutine. it closes a couple of folders, exits the loop via a exitloopas boolean variable
Source = frm_toolbar.Label3.Caption
'write the current preset calibration value to the ini file
preset_cal = frm_toolbar.txtprecals.text
Call WritePrivateProfileString("Calibration", "Pre_set", preset_cal, filename)
Call WritePrivateProfileString("Calibration", "source", Source, filename)
'delete the temporary file in the application data folder
If IspathExist(temp_folder) Then
Dim fso As New FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
fso.GetFolder (temp_folder)
fso.DeleteFolder (temp_folder), False
'Kill temp_folder
End If
'delete the temporary file in the application data folder
If IspathExist(temp_folder2) Then
Set fso = CreateObject("Scripting.FileSystemObject")
fso.GetFolder (temp_folder2)
fso.DeleteFolder (temp_folder2), False
End If
'close the open version of image pro
AppActivate image_pro
Wait 1
SendKeys "%{F4}", True
Wait 0.1
exitloop = True
frm_toolbar.Timer1.Interval = 0
frm_toolbar.Timer1.Enabled = False
'ensure that all the form have been unloaded
Dim i As Integer
For i = Forms.count - 1 To 0 Step -1
Unload Forms(i)
Set Forms(i) = Nothing
Next
Exit Function
|