Skip to Content
0
Former Member
Jun 10, 2009 at 06:03 AM

illegal start of expression in UDF

64 Views

Hi,

What am i doing wrong n this UDF? It gives an illegal start of expression at the first 2 if statements saying an ")"is expected:

public String Determine_AMT_DOCCUR(String KTOS,String BRUTTO,Container container){

int KTOSNR = 0;

String tmpDOCCUR = "";

KTOSNR = new Integer(KTOS).intValue();

if (KTOSNR <> 0 && BRUTTO.contains("+")) tmpDOCCUR = BRUTTO;

if (KTOSNR <> 0 && BRUTTO.contains("-")) tmpDOCCUR = BRUTTO.replace("-","+");

if (KTOSNR = 0 && BRUTTO.contains("")) tmpDOCCUR = BRUTTO.replace("","-");

if (KTOSNR = 0 && BRUTTO.contains("-")) tmpDOCCUR = BRUTTO;

Thanks

Tom

return tmpDOCCUR;