Skip to Content
author's profile photo Former Member
Former Member

passing values

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 25, 2007 at 06:28 AM

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

    code wise its good..

    Award points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 25, 2007 at 06:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 25, 2007 at 06:39 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 25, 2007 at 06:40 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 25, 2007 at 08:59 AM

    Hi,

    Its correct, you can proceed ahead with same logic.

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.