portlandtrailblazer
Technical User
I frequently find that my programs trip over themselves unless I insert a time delay in the code. I insert a time delay by starting a counter to count to 500 or 100 or whatever.
One recent example is getting MSWord to paginate a document. I needed to access BuiltInDocumentProperties for determination of how many pages a document has. It would not work consistently unless I put in a time delay after the document opened.
I have had similar experiences with other functions.
Is this common? Is my approach reasonable?
Thanks
One recent example is getting MSWord to paginate a document. I needed to access BuiltInDocumentProperties for determination of how many pages a document has. It would not work consistently unless I put in a time delay after the document opened.
I have had similar experiences with other functions.
Is this common? Is my approach reasonable?
Thanks