Billy,
Here is some code I made that should accomplish what you want.
void __declspec(dllexport) setStepExec(CAObjHandle step, CAObjHandle context)
{
VARIANT execVariant;
LPDISPATCH execDispatch;
int error = 0;
CAObjHandle execObj;
TS_SeqContext
ERRORINFO errorInfo;
TS_SeqContextGetExecution (context, &errorInfo, &execObj);
CA_GetDispatchFromObjHandle (execObj, &execDispatch);
execVariant = CA_VariantDispatch (execDispatch);
TS_StepSetRunModeEx (step, &errorInfo, "Skip", execVariant);
Error:
if (error < 0)
{
}
}
Allen P.
NI
PS- I may have a few memory leaks in there, but this should at least show you the way to do what you want.
Message Edited by AllenP on 05-17-2005 02:19 PM