Use of * in assign statement ?



Software AG's platform-independent programming language with full support for open-source and Internet applications

Use of * in assign statement ?

Postby diptisaini » Wed May 19, 2010 12:31 pm

ADD 1 TO #KCTGMAPP-OUT-COUNT
#UNFRANKED-IND-IDX := #KCTGMAPP-OUT-COUNT
#KCTGMAPP-OUT-GRP-NAME ( #UNFRANKED-IND-IDX ) := 'UNFRANKED IND'
#KCTGMAPP-OUT-GRP-VALUE( #UNFRANKED-IND-IDX ) := #UNFRANKED-CALCULATE
#CONE-KCTGMAPP-OUT-COUNT := #KCTGMAPP-OUT-COUNT
#CONE-KCTGMAPP-OUT-GRP-NAME (*) := #KCTGMAPP-OUT-GRP-NAME(*)
#CONE-KCTGMAPP-OUT-GRP-VALUE(*) := #KCTGMAPP-OUT-GRP-VALUE(*)

What is the use of * in #CONE-KCTGMAPP-OUT-GRP-VALUE(*) := #KCTGMAPP-OUT-GRP-VALUE(*) statement ?
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Use of * in assign statement ?

Postby Arkantos » Wed May 19, 2010 2:22 pm

All the values present in the array #KCTGMAPP-OUT-GRP-VALUE will be moved to
#CONE-KCTGMAPP-OUT-GRP-VALUE array.

(*) indicates all the occurences

Let say #KCTGMAPP-OUT-GRP-VALUE has 4 values
#KCTGMAPP-OUT-GRP-VALUE(1) = abc
#KCTGMAPP-OUT-GRP-VALUE(2) = xyz
#KCTGMAPP-OUT-GRP-VALUE(3) = jkl
#KCTGMAPP-OUT-GRP-VALUE(4) = nop

after the statement gets executed, then
#CONE-KCTGMAPP-OUT-GRP-VALUE(1) will have abc
#CONE-KCTGMAPP-OUT-GRP-VALUE(2) will have xyz
#CONE-KCTGMAPP-OUT-GRP-VALUE(3) will have jkl
#CONE-KCTGMAPP-OUT-GRP-VALUE(4) will have nop

cheers
Arkantos
Arkantos
 
Posts: 18
Joined: Fri Apr 16, 2010 10:06 am
Has thanked: 0 time
Been thanked: 0 time

Re: Use of * in assign statement ?

Postby diptisaini » Thu May 20, 2010 3:28 pm

Thanks...
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time


Return to Natural

 


  • Related topics
    Replies
    Views
    Last post