>Hi Peter,
>
>Try something like this:
>
>
>oyy=createobject('MSGraph.Chart')
>
>if vartype(oyy)#'O'
> wait wind time 1 'Ooops! No Chart Here!'
> return .F.
>else
> ....
>endif
>
>
>Good luck!
>
>Hugh
>
Hugh, thanks for the tip. However, the CheckServer() tip has more potential, for it opens the possibility to check why an ole-server isn't detected as such. As Della Martin explained, sometimes a user claims that the server/app really exists although it can't be created as an object. CheckServer() can then give useful extra information.
BTW, I see that you're still not a full member of UT. But after your recent initiative you should get a free membership for at least a year :).
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.