Skip to Content

Some code explanation.

dear all,

can u please tell me what does month = SOURCE_FIELDS-fiscper+5(2). does? what exactly does +5(2) does? thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 07:02 PM

    +5 is the position (2) is the length.

    For example IF SOURCE_FIELDS-fiscper = 0123456789

    then

    SOURCE_FIELDS-fiscper+5(2) will be just 56

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 07:03 PM

    It assigns the 6th and 7th character of SOURCE_FIELDS-fiscper to the variable month.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2008 at 07:07 PM

    Offset

    month = SOURCE_FIELDS-fiscper+5(2).

    the above code will populate the month from the SOURCE_FIELD field fiscper

    fiscper+5(2)

    +5 "from 5th position(character 6 and character 7) , 2 means 2 characters(char 6, char 7)

    will be taken .

    Read the help on Offest.

    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.