You must each make up your own mind as to how much you should give. Don't give reluctantly or in response to pressure. For God loves the person who gives cheerfully.
Dec
27
You must each make up your own mind as to how much you should give. Don't give reluctantly or in response to pressure. For God loves the person who gives cheerfully.

Sub RefreshAllFields() ' ' RefreshAllFields Macro ' ' For i = 1 To ActiveDocument.Sections.Count If Not ActiveDocument.Sections(i).Headers Is Nothing Then For h = 1 To ActiveDocument.Sections(i).Headers.Count x = ActiveDocument.Sections(i).Headers(h).Range.Fields.Update() Next h End If x = ActiveDocument.Range.Fields.Update() If Not ActiveDocument.Sections(i).Footers Is Nothing Then For f = 1 To ActiveDocument.Sections(i).Footers.Count x = ActiveDocument.Sections(i).Footers(f).Range.Fields.Update() Next f End If Next i End Sub
A man who isolates himself seeks his own desire He rages against all wise judgment
The other annoying thing about implementation Teamstudio’s tools is that they lock Designer while they are open. In one of Teamstudio’s beta release they were testing the ability to launch a tool in Modal mode which would not lock Designer. This was very nice feature, but it was not implemented because it had some bugs according to them. The one Teamstudio icon that I implemented uses the modal implementation and I never had a problem.
For this article I have split up the code into three sections: Teamstudio Modal, Teamstudio Standard, and Original Teamstudio’s Posting. Use what ever fits your needs.
Option := @Prompt( [OKCANCELLIST] ; "Select Option" ; "What would you like to do:" ; "CIAO! Modal" ; "Analyzer Modal" : "Configurator Modal" : "CIAO! Modal" : "Delta Modal" : "Librarian Modal" : "Snapper" : "Form Snippet" : "Validator (Linkchecker) Modal" ) ; File := "Nothing"; @If( Option = "Analyzer Modal" ; @Command([Execute]; "ndean.exe"; @DbLookup ("NAME":"Nocache";"") ) ; Option = "Configurator Modal" ; @Command([Execute]; "nconfy.exe";@DbLookup ("NAME":"Nocache";"") ) ; Option = "Delta Modal" ; @Command([Execute]; "ndelta.exe";@DbLookup("NAME":"Nocache";"") ) ; Option = "CIAO! Modal" ; @Command([Execute]; "nciao.exe";@DbLookup("NAME":"Nocache";"") ) ; Option = "Librarian Modal" ; @Command([Execute]; "nlibr.exe";@DbLookup("NAME":"Nocache";"") ) ; Option = "Snapper" ; @Set( File ; @DbColumn( "TMS":"NoCache" ; "SNAP") ) ; Option = "Form Snippet" ; @Command( [FileImport]; "Form Snippet";"") ; Option = "Validator (Linkchecker) Modal" ; @Command([Execute]; "nvalidator.exe";@DbLookup("NAME":"Nocache";"") ) ; "" ); @If ( File != "Nothing" & Option = "Analyzer":"Linkchecker"; @Do( @PostedCommand( [AddDatabase]; File ); @PostedCommand( [FileOpenDatabase]; File ) ); "" )
Option := @Prompt( [OKCANCELLIST] ; "Select Option" ; "What would you like to do:" ; "CIAO!" ; "Analyzer": "Configurator" : "CIAO!" : "Delta" : "Librarian" : "Snapper" : "Form Snippet" : "Validator (Linkchecker)") ; File := "Nothing"; @If( Option = "Analyzer" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "DEAN" ) ); Option = "Configurator" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "STAR" ) ) ; Option = "Delta" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "DIFF" ) ) ; Option = "CIAO!" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "CIAO" ) ) ; Option = "Librarian" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "LIBR" ) ); Option = "Snapper" ; @Set( File ; @DbColumn( "TMS":"NoCache" ; "SNAP") ) ; Option = "Form Snippet" ; @Command( [FileImport]; "Form Snippet";"") ; Option = "Validator (Linkchecker)" ; @Set( File ; @DbLookup( "TMS" : "NoCache";"LINKCHK" ) ) ; "" ); @If ( File != "Nothing" & Option = "Analyzer":"Linkchecker"; @Do( @PostedCommand( [AddDatabase]; File ); @PostedCommand( [FileOpenDatabase]; File ) ); "" )
Option := @Prompt( [OKCANCELLIST] ; "Select Option" ; "What would you like to do:" ; "CIAO! Modal" ; "Analyzer" : "Analyzer Modal" : "Configurator Modal" : "Configurator" : "CIAO!" : "CIAO! Modal" : "Delta" : "Delta Modal" : "Librarian" : "Librarian Modal" : "Snapper" : "Form Snippet" : "Linkchecker" ) ; File := "Nothing"; @If( Option = "Analyzer" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "DEAN" ) ); Option = "Analyzer Modal" ; @Command([Execute]; "ndean.exe"; @DbLookup ("NAME":"Nocache";"") ) ; Option = "Configurator" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "STAR" ) ) ; Option = "Configurator Modal" ; @Command([Execute]; "nconfy.exe";@DbLookup ("NAME":"Nocache";"") ) ; Option = "Delta" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "DIFF" ) ) ; Option = "Delta Modal" ; @Command([Execute]; "ndelta.exe";@DbLookup("NAME":"Nocache";"") ) ; Option = "CIAO!" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "CIAO" ) ) ; Option = "CIAO! Modal" ; @Command([Execute]; "nciao.exe";@DbLookup("NAME":"Nocache";"") ) ; Option = "Librarian" ; @Set( File ; @DbLookup( "TMS" : "NoCache"; "LIBR" ) ); Option = "Librarian Modal" ; @Command([Execute]; "nlibr.exe";@DbLookup("NAME":"Nocache";"") ) ; Option = "Snapper" ; @Set( File ; @DbColumn( "TMS":"NoCache" ; "SNAP") ) ; Option = "Form Snippet" ; @Command( [FileImport]; "Form Snippet";"") ; Option = "Linkchecker" ; @Set( File ; @DbLookup( "TMS" : "NoCache";"LINKCHK" ) ) ; "" ); @If ( File != "Nothing" & Option = "Analyzer":"Linkchecker"; @Do( @PostedCommand( [AddDatabase]; File ); @PostedCommand( [FileOpenDatabase]; File ) ); "" )
Whoever loves instruction loves knowledge, But he who hates correction is stupid.