Forum Discussion

mspatel's avatar
mspatel
Contributor
10 years ago

Wait Until Object is Loaded

Whats the Best Approach to Wait for Object to be loaded completely before performing any Action. ? 

 

In Application that i am working on I have region check point defined on a Graph to appear. Since It take time calculating number and loading the graph, intially empty frame is loaded and after sometime Aactual graph Appear. Now the problem is time to get the graph loaded kind of varies based on various factor. 

 

My Question is whats the best strategy here except sit and wait for some random amount  of time and using 

aqUtils .Delay (xxxxx)  ? 

 

If i just check on Obejct existance using EXISTS , then it will always be True because Object Does exist even when its not completely loaded.

 

 

I have attached screenshot with Code Snippet to give you Idea. 

 

Any help would be much Appreciated. 

 

Manish

 TimeOut.jpg

 

  • Nevermind found the solution...I will be checking for Existance of Sub objects that gets loaded later on. 

  • Nevermind found the solution...I will be checking for Existance of Sub objects that gets loaded later on.