May 7, 2014

Split string in crytal report

if {II_VI_HoaDonVAT.ReportType} = "VAT" then  
(
//    right({II_VI_HoaDonVAT.LegalNumber}, 7)
    stringvar array legal:= split({II_VI_HoaDonVAT.LegalNumber},'-');
    if(Ubound(legal)>1) then
        legal[2]
    ELSE ''
)
else
(
    stringvar array legal := split({II_VI_HoaDonVAT.SubInvoiceNo},'-');
    if(Ubound(legal)>2) then legal[2]+" - "+legal[3]
    else ""
);
 
 

0 comments:

Post a Comment

Nam Le © 2014 - Designed by Templateism.com, Distributed By Templatelib