S
Sammut
Hi,
I am trying to create a class in which I create a number of functions that
I can call from differenet places in my program.
I create a new class called ecs
Then I create a function in it whic returns a string.
Then I went in my main form and tried to call the function with out any
sucess. Here is my ecs.cs class. Can anyone see what am I doing wrong
using System;
namespace test
{
/// <summary>
/// Summary description for ecs.
/// </summary>
public class ecs
{
//
public string sMask (string sText)
{
string sVar = "";
return sVar;
}
}
}
when I try to call ecs.sMask I get an error as if the function is not
defined
I am trying to create a class in which I create a number of functions that
I can call from differenet places in my program.
I create a new class called ecs
Then I create a function in it whic returns a string.
Then I went in my main form and tried to call the function with out any
sucess. Here is my ecs.cs class. Can anyone see what am I doing wrong
using System;
namespace test
{
/// <summary>
/// Summary description for ecs.
/// </summary>
public class ecs
{
//
public string sMask (string sText)
{
string sVar = "";
return sVar;
}
}
}
when I try to call ecs.sMask I get an error as if the function is not
defined