Hai,
In the item table of your window,in the main area declare this code
g_sno = g_sno + 1.(input parameter:G_SNO,output parameter:G_SNO)
for serial number in the
programing lines
In the global data declare G_SNO type I.
In the text editor pass:&g_sno&.
Regards
Siva jyothi.