Joined: Mon Jan 31, 2011 9:04 pm Posts: 38 Location: Texas
|
|
In the script snippet below, I am setting up toggles (using "not") to view or not certain things in Textmaker. All of the toggles work fine, except for View.FieldShading. I can toggle FieldShading using if/else. But I should not need an if statement. Any thoughts?
The code snippet follows:
dim tm as object set tm = CreateObject("TextMaker.Application")
' Why won't this toggle work like the rest of the toggles below? <<<<< 'tm.ActiveWindow.View.FieldShading = not tm.ActiveWindow.View.FieldShading
' Use this workaround since the toggle line does not work if tm.ActiveWindow.View.FieldShading = 0 then tm.ActiveWindow.View.FieldShading = 1 else tm.ActiveWindow.View.FieldShading = 0 end if
tm.ActiveWindow.View.HighlightComments = not tm.ActiveWindow.View.HighlightComments tm.ActiveWindow.View.ShowBookmarks = not tm.ActiveWindow.View.ShowBookmarks tm.ActiveWindow.View.ShowHiddenText = not tm.ActiveWindow.View.ShowHiddenText
|
|