clarke24
Member
Hi
I need to set Tag "SM_D5054TempWorm_Rng" to 1 when the forecolor of an object changes to green or when Tag "SM_D5054_CNF" changes to 1. I have been able to chane the colour of the object but when using settagbit cannot get tag "SM_D5054TempWorm_Rng" to change to 1.
Heres the code i wrote
Can anyone help to get this working?
Thanks
I need to set Tag "SM_D5054TempWorm_Rng" to 1 when the forecolor of an object changes to green or when Tag "SM_D5054_CNF" changes to 1. I have been able to chane the colour of the object but when using settagbit cannot get tag "SM_D5054TempWorm_Rng" to change to 1.
Heres the code i wrote
Code:
#include "apdefap.h"
long _main(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
#define TAG_1 "SM_D5054_CNF"
if ((unsigned long)GetTagDouble (TAG_1))
return 65280;
else
return 8421504;
if ("SM_D5054_CNF")
SetTagBit("SM_D5054TempWorm_Rng",1);
else
SetTagBit("SM_D5054TempWorm_Rng",0);
}
Can anyone help to get this working?
Thanks
Last edited: