Forum Discussion
denioflavio
13 years agoOccasional Contributor
you can also use the wait* methods, for instance:
waitProcess
waitWindow
waitVCLObject,
and others...
Sample:
if (Sys.Process('tab_veic').Exists) then
-> throw a log error if the process does not exists.
if (Sys.waitProcess('tab_veic', 2000).Exists) then
->its doesnt throw a log error.
-> 2000 is the timeout, in miliseconds
waitProcess
waitWindow
waitVCLObject,
and others...
Sample:
if (Sys.Process('tab_veic').Exists) then
-> throw a log error if the process does not exists.
if (Sys.waitProcess('tab_veic', 2000).Exists) then
->its doesnt throw a log error.
-> 2000 is the timeout, in miliseconds