Hello,
I try to change the AutoLogout mode during runtime.
VBA Code:
Public Sub enableautologoff()
thisProject.DynProperties("AutoLogout") = True
thisProject.DynProperties("AutoLogoutTime") = 1
thisProject.Variables.Item("logoutstate").Value = "Enabled"
End Sub
Public Sub disableautologoff()
thisProject.DynProperties("AutoLogout") = False
thisProject.Variables.Item("logoutstate").Value = "Disabled"
End Sub
Public Sub ShowAutologoffStatus()
Dim strText As String
Dim IsOn As Boolean
Dim Settime As Long
IsOn = thisProject.DynProperties("AutoLogout")
Settime = thisProject.DynProperties("AutoLogoutTime")
strText = "Auto Logoff = " & str(IsOn) & " ,Tijd = " & str(Settime)
Debug.Print strText
End Sub
I see the string variable changing, so the macro's are executed, but the state remains as defined in the project properties.
In the sub ShowAutologoffstatus the items are always returning "empty"
What's wrong?
This is a migrated post! Originally posted on 05.02.2010 by user hansvanzijp. Please be aware that information can be outdated.