Home > Margerp > Gui Format > How to use ' Substr ' command in Marg Software ?
SUBSTR command is used to divide a string into two parts. In Marg ERP software user can easily divide the string into two parts i.e. it can be a party name, item name etc.
This command can be used to print some characters of a long item or party name in one line and remaining in another line.
Suppose, we have an item Corex Cough Syrup 100 ml, and we need that the item name should print till syrup in first line and 100 ml will print in second line of the bill format so in this case we can use SUBSTR Command.
.lw(166, < SUBSTR(SB_PROD,1,15),30 > ,"Verdana",6)
.lf(1) .
.lw(166, < SUBSTR(SB_PROD,15,30),30 > ,"Verdana",6)
After following the above steps the item name will be printed as required.