Hello all
I try to execute this code, but the message does not appear and confirms that the key exists. Please help.
Thanks >>>AZ
I try to execute this code, but the message does not appear and confirms that the key exists. Please help.
Thanks >>>AZ
Code:
Private Sub Command2_Click()
Dim MN As Long
Dim DN As Long
Dim EE As Long
Dim APW1 As Variant
Dim UPW2 As Variant
MN = HKEY_CLASSES_ROOT
EE = 1
APW1 = "003"
UPW2 = "003"
DN = QueryValue(MN, "Light\A0\A20\EE", "EE")
If DN = 1 Then
MsgBox "key is present"
End
End If
APV = Me.Text0
CreateNewKey MN, "Light\A0\A20\EE"
CreateNewKey MN, "Light\A0\A20\AP"
CreateNewKey MN, "Light\A0\A20\UP"
SetKeyValue MN, "Light\A0\A20\EE", "EE", EE, 1
SetKeyValue MN, "Light\A0\A20\AP", "APW1", APW1, 1
SetKeyValue MN, "Light\A0\A20\UP", "UPW2", UPW2, 1
End Sub
Last edited: