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
>Hi,
>
>How can I check for the existence of MS Graph on a user's computer?
>
>(I realize that this item should have been posted in the section on OLE automation. But, although I can edit a message as long as no one has replied, there's no way to withdraw a message. Maybe a new item on the long Todo list of Michel?!)
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!
Support the product. Buy the latest version!
Hugh Winters @ WorldData 408-512-1131