Substring function on display method

Hi,

What I am trying to do is, to retrieve some data from a table and put it into a variable. And that data is of type string.

for eg: while select …some condition

{

a = table.fieldname;

}

return substr(a,pos,length);

The above code is a display method on a report. The method works fine, bu substr does not work. It gives me the entire string value as it is in the table.

actual output: sl-abcd

expected output: abcd

The subStr() dont work here.

Hi,

I don’t see any reason why it shouldn’t work. Please post your code here.

Alternately this is something that was discussed many times here. Ex - http://dynamicsuser.net/forums/p/36662/189654.aspx. Please search this forum for more suggestions and tips.