Re: Wait till intialization complete...

Tech-Archive recommends: Speed Up your PC by fixing your registry



Am Sun, 8 Oct 2006 18:26:20 UTC, schrieb "Tony Jollans" <my forename
at my surname dot com> auf microsoft.public.word.vba.general :

thanks for your thoughts

Well, first thing is that I don't think you can do it in Document_New at
all. The document is not considered open, or available for the Delphi app to
add variables to, until the event code has finished. This means you will
have to start a separate macro using Application.OnTime.

I had a look at this in the online help, but had and have my doubts,
one reason being the time granularity which seemed to be somewhat to
coarse, but I may have been in error on that matter.

If really the "document_new" event is not yet over in that moment,
the document will not yet have the name which is being assigned to it
by the database application, and do I not have to specify that name in
the OnTime call? Will the target macro really catch the new document
which had just been created, or some other? I am not sure.

Otherwise, your suggestion may hit the mark. Anyway, I will have to
consult with the developers of the database application, what they
have to say about my project.

Of course, if the delphi app is changed to add 400 variables you will start
failing so it would be better having a more definite trigger.

I had a look at various documents, and found that the number of
DocVariables can easily reach 850 or more...

But the very first one is named "DATA_DONE", and it always had the
value of "1". I guess that it has initially the value "0", and is
changed to "1" when the data is actually done. I have a procedure
which loops thru the document variable collection, checks for the
existence of this variable and its value (when available -- I hope
that the second condition after a AND operator is not checked by
VBA...). But, as I said, I would like to simply yield the time to the
OS and other applications by some kind of WAIT function.


Yours,
L.W.


.



Relevant Pages

  • Re: .Net 2.0 Membership
    ... can you verifiy using SQL Profiler that the provider indeed contacts the database? ... Dominick Baier - DevelopMentor ... Event code: 4006 ... Event message: Membership credential verification failed. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Advantages of object-oriented programming
    ... I really wish that Dylan had succeeded. ... It's a beautiful language. ... an event manager should be treated more like a database ... but the framework for matching events to event code ...
    (comp.object)
  • Re: How to control label visability property with unbound text box?
    ... Then add the following to the AfterUpdate properties (the property - not the ... event code) for both txtAdded and txtTaken: ... > I'm trying to develope an Inventory Based database with ... > Inventory databases that have examples I might study? ...
    (microsoft.public.access.forms)
  • Re: Tab Control
    ... That line of code doesn't change the Tab page. ... Check the CommandButton_Click Event code also. ... MVP "Tom" wrote in message ... > Not sure why this line is there as it is a database that we have taken> over - any suggestions? ...
    (microsoft.public.access.formscoding)