Page 1 of 1

VB API to delete a process

Posted: Tue Apr 05, 2016 9:21 am
by Phil66
Hello,

I know quite well to create an empty process, but unfortunately it doesn't work to delete a process by name via VB/VBA API. Has anyone a good idea or a fragment of code? :roll:

Re: VB API to delete a process

Posted: Tue Apr 05, 2016 9:27 am
by qml
TM1ObjectDelete( TM1P hPool, TM1V hObject ) should do the trick.

Re: VB API to delete a process

Posted: Tue Apr 05, 2016 11:26 am
by babytiger
Can I please ask why such functionality is required?

If required to create temporary TIs to perform a function, and delete the temporary TIs on completion. If that's the case, wouldn't it be tidier to perform all updates via API alone?