Application Development and Automation 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: 
Read only

passing values

Former Member
0 Likes
673

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
Read only

former_member156446
Active Contributor
0 Likes
638

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

code wise its good..

Award points if helpful

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
639

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

code wise its good..

Award points if helpful

Read only

Former Member
0 Likes
638

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

Read only

Former Member
0 Likes
638

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.

Read only

Former Member
0 Likes
638

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.

Read only

Former Member
0 Likes
638

Hi,

Its correct, you can proceed ahead with same logic.

Thanks,

Sriram Ponna.