08-25-2021
10:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-25-2021
10:58 PM
SharedVariable concept is great, when you need to share values between rules or for a long time (Inventor session). But for this case is it possible to use just shared variable in this rule. This shared variable lifetime is until you edit or regenerate the rule.
Sub main
If disabled Then Return
Dim result = InputListBox("prompt", New String() {"a", "b", "disable" }, "a", "title", "list name")
MsgBox(result)
If result = "disable" Then
disabled = True
MsgBox("DISABLED BY USER")
End If
End Sub
Shared disabled As Boolean = False