0 Replies Latest reply on Nov 8, 2011 10:20 AM by ChrisSipes

    IWP help with strickout script that works but not in IWP

    ChrisSipes

      Title

      IWP help with strickout script that works but not in IWP

      Your post

      Can anyone help with getting this to work in IWP? It takes what is selected in a field and sets the text to strickthourgh.

       

      Set Variable [$FieldVar; Value:Get ( ActiveFieldTableName ) & "::" & Get ( ActiveFieldName )]

      Set Variable [$StartVar; Value:Get ( ActiveSelectionStart )]

      Set Variable [$SizeVar; Get ( ActiveSelectionSize )]

      Set Variable [$WordsVar; TextStyleAdd ( Middle (Get ( ActiveFieldContents ) ; $StartVar ; $SizeVar ) ; Strikethrough )]

      Set Field By Name [$FieldVar; Replace ( Get ( ActiveFieldContents ) ; $StartVar ; $SizeVar ; $WordsVar )]