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: 

passing values

Former Member
0 Kudos

i had a value like 20203005

i need to pass these values lin three variables like var1 =20 var2 =20 var3 =3005

i'm using

var1 = value+(2).

var2= value+2(2).

var3= value+4(2).

is it correct please advice me.

thanks

krishna

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

if that is serving ur purpose then that is right..

code wise its good..

Award points if helpful

5 REPLIES 5

former_member156446
Active Contributor
0 Kudos

if that is serving ur purpose then that is right..

code wise its good..

Award points if helpful

Former Member
0 Kudos

Hi

Krishna

exactly wht u wrote is correct

no problem proceed futher

plzz reward if usefu;l...

if u have any futher quiries my mail id mutyalasunilkumar@gmail.com

plzz reward

Former Member
0 Kudos

Hi,

There should be a small change in the assignment of 3rd field.

var1 = value+(2).

var2= value+2(2).

var3= value+4(4).

for the 3rd field, u need to fetch 4 values '3005'.

so from 4th char of the value ('3') 4 more values to be fetched. i.e., 3005.

Former Member
0 Kudos

Hi,

try simply like this.

data:str(8) VALUE '20203005'.

data:var1(2),var2(2),var3(4).

var1 = str."or str+(2).

var2 = str2."or str2(2).

var3 = str4."or str4(4).

write:/ var1,var2,var3.

rgds,

bharat.

Former Member
0 Kudos

Hi,

Its correct, you can proceed ahead with same logic.

Thanks,

Sriram Ponna.