Please help me to shortern the object

 

int start () {

Data_HOL();

return(0);

}

void Data_HOL() {

string n8 = "Data_HOL";

n8 = "Head_0a";
ObjectDelete(n8);

ObjectCreate(n8, OBJ_LABEL, 0, 0, 0);
ObjectSetText(n8,"Swap", 8, "Arial", White);
ObjectSet(n8, OBJPROP_CORNER, 0);

ObjectSet(n8, OBJPROP_XDISTANCE, 3);

ObjectSet(n8, OBJPROP_YDISTANCE, 12);

n8 = "Head_0b";
ObjectDelete(n8);

ObjectCreate(n8, OBJ_LABEL, 0, 0, 0);
ObjectSetText(n8,"AvHL", 8, "Arial", White);
ObjectSet(n8, OBJPROP_CORNER, 0);

ObjectSet(n8, OBJPROP_XDISTANCE, 287);

ObjectSet(n8, OBJPROP_YDISTANCE, 12);

}

The purpose of the writing is to show on the platform. But because of my ea is too long, the system reject me saying my ea is too long.

Anyone can help me to shorten it?

I surf internet & found the below. it seems like 1 line can write all. I tried but couldn't make it...

void LABEL(string 名字, string 注解, string 字体, int x边, int y边, color 颜色, int 左右上下, int 字体大小)
{
if (ObjectFind(名字) < 0) ObjectCreate(名字, OBJ_LABEL, 0, 0, 0);
ObjectSetText(名字, 注解, 字体大小, 字体, 颜色);
ObjectSet(名字, OBJPROP_CORNER, 左右上下);
ObjectSet(名字, OBJPROP_XDISTANCE, x边 + 5 + 0);
ObjectSet(名字, OBJPROP_YDISTANCE, y边 + 5 + 0);
}

Someone please help. Thanks

Reason: