Re: calling static methods
you said your declaration is as follows:
public String ParserHelper (String fileName, String num, String headers)
you didnt specify the static keyword.
it should be
public static String ParserHelper (String fileName, String num, String headers)
hope this helps.
CafeDreamz.
Re: calling static methods
hey,also make sure the Parserhelper method is not accessing any non-static instance members of the class to which it belongs.
Re: calling static methods
yea i had tried by putting static, cuz thts necessary if i dont want to make an object to call the function, but when i call in this HL7Convert class it says it doesn't belong to name space and stuff, although i've created a dll of the class where the ParserHelper and included here:
Code:
using System;
using WindowsApplication1;
Also, ParserHelper was calling other function too, and i made that static too. But nothing worked :(
Re: calling static methods
ok i figured my prob, i wasn't calling it rite..its supposed to be like this:
return (Form1.ParserHelper(fName,fNum, header));
:)