quote:
Originally posted by Huuf
Private Function progy_load()
z = GetSetting("cnBackup", "TimesRun", "1")
If z = "" Then
SaveSetting "cnBackup", "TimesRun", "1", 1
Else
SaveSetting "cnBackup", "TimesRun", "1", z + 1
End If
change that bit and it will work
nice try, but when you dont specify a variable type, its automatically variant accepting both string and numbers........ so your wrong there , and the reg file is a dos registry ment for exporting and importing and deleting keys so it does work
anyways i found where the error was...
code:
Private Sub Form_Load()
Set ontop = New clsOnTop
Call progy_load
size = "Size of CustomNameBackUp " & z & ".reg is: "
End Sub
Private Sub Form_Activate()
ontop.MakeTopMost hWnd
End Sub
the form was activating and trying to be set as always on top but the variable was yet to be declared on some computers...
so i changed it to....
code:
Private Sub Form_Load()
Set ontop = New clsOnTop
Call progy_load
size = "Size of CustomNameBackUp" & z & ".reg is: "
ontop.MakeTopMost Me.hWnd
End Sub