report

i am developing areport where i am taking values from different tables.In my rwport i want to pick only first five characters from a value in field for a certain field.how can I do this?

static void Remove(Args _args)
{
str txt = “ABCDEFGHIJ”;
str i;
int k;
;
k = strlen (txt);

// Returns the text string ABCDE.
i = strDel(txt,6,k);

print i;
pause;
}
Use this as an example and try to implement in your code.

hi,

u can use strDel(strfmt(fieldname),1,5);