Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to truncate the first character of a field

Former Member
0 Kudos

Hi Experts,

I have a field say X which is having 3 characters say '123'. Now i have to pass only the last 2 values of X to another field Y. that is Y should contain only '23'. Can you please suggest the method to do it.

Regards,

Buvana

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Buvana,

X = X+1(2).

Regards

Aneesh.

3 REPLIES 3

Former Member
0 Kudos

<b>var = field+1(2)</b>

genral.

len = strlen(field).

len1 = len - 2 .

var = field+len1(2).

kishan negi

0 Kudos

Hi,

You need to use as follows

var = var+1(2).

var = var+n(m)

This means Read two(M) charachter(s) leaving the first one (N)character(s).

Regards,

Sesh

Former Member
0 Kudos

Hi Buvana,

X = X+1(2).

Regards

Aneesh.