Since you are changing the object in a onafterchange event on it you
will fire the event yourself. you can setup a semaphore flag to only
execute the code once:
dim ModifyItem = false
Sub msoxd_my_txtServerName_OnAfterChange(eventObj)
' Write code here to restore the global state.
If eventObj.IsUndoRedo or ModifyItem Then
' An undo or redo operation has occurred and the DOM is read-only.
Exit Sub
End If
ModifyItem = true ' make sure this code is only executed once
' A field change has occurred and the DOM is writable. Write code here
to respond to the changes.
Dim objServerName
Set objServerName =
XDocument.DOM.selectSingleNode("//my:myFields/my:txtServerName")
objServerName.text = ucase(objServerName.text)
ModifyItem = false ' set it back to complete for next time
End Sub
cmenconi@techie.com - 30 Jan 2006 16:50 GMT
bratt
Thanks a Million man!
That worked great.
>Since you are changing the object in a onafterchange event on it you
>will fire the event yourself. you can setup a semaphore flag to only
[quoted text clipped - 19 lines]
>ModifyItem = false ' set it back to complete for next time
>End Sub