AnsweredAssumed Answered

IWP help with strickout script that works but not in IWP

Question asked by ChrisSipes on Nov 8, 2011

Title

IWP help with strickout script that works but not in IWP

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 )]

Outcomes