Deep assignment 
Author Message
 Deep assignment

Can anyone help please with the form for using a deep assignment.

                    Destination file:
Source file:

File name:  ChgSum5.Tps
InvSum5.Tps
Prefix:        ChgSum
InvSum
File path:    !ChgSum5_
!InvSum5_

I get a syntax error if I use either of

            ChgSum :=: InvSum
or         ChgSum5 :=: InvSum5

It compiles OK if I use ChgSum5_ :=: InvSum5_  but no value is passed to
the fields of ChgSum.

What am I doing wrong ?

Thanks

Jason Austin



Wed, 13 Aug 2003 08:26:00 GMT  
 Deep assignment
Sorry, my tabs screwed up the layout of that message.  Hope this is clearer.

Jason

Quote:

> Can anyone help please with the form for using a deep assignment.
>                   Destination file:      Source file:

> File name:  ChgSum5.Tps        InvSum5.Tps
> Prefix:        ChgSum                InvSum
> File path:    !ChgSum5_          !InvSum5_

> I get a syntax error if I use either of

>             ChgSum :=: InvSum
> or         ChgSum5 :=: InvSum5

> It compiles OK if I use ChgSum5_ :=: InvSum5_  but no value is passed to
> the fields of ChgSum.

> What am I doing wrong ?

> Thanks

> Jason Austin



Wed, 13 Aug 2003 08:29:20 GMT  
 Deep assignment
Jason,

    If you supplied the actual definitions of the files as found in the CLW
files would allow better analysis... {'-)

    Regards,

    kurtt

Quote:

> Can anyone help please with the form for using a deep assignment.

>                     Destination file:
> Source file:

> File name:  ChgSum5.Tps
> InvSum5.Tps
> Prefix:        ChgSum
> InvSum
> File path:    !ChgSum5_
> !InvSum5_

> I get a syntax error if I use either of

>             ChgSum :=: InvSum
> or         ChgSum5 :=: InvSum5

> It compiles OK if I use ChgSum5_ :=: InvSum5_  but no value is passed to
> the fields of ChgSum.

> What am I doing wrong ?

> Thanks

> Jason Austin



Wed, 13 Aug 2003 18:00:02 GMT  
 Deep assignment
Hi Jason,
That should be :

ChgSum:Record :=: InvSum:Record

HTH

Jim

Quote:

> Sorry, my tabs screwed up the layout of that message.  Hope this is clearer.

> Jason


> > Can anyone help please with the form for using a deep assignment.

> >                   Destination file:      Source file:

> > File name:  ChgSum5.Tps        InvSum5.Tps
> > Prefix:        ChgSum                InvSum
> > File path:    !ChgSum5_          !InvSum5_

> > I get a syntax error if I use either of

> >             ChgSum :=: InvSum
> > or         ChgSum5 :=: InvSum5

> > It compiles OK if I use ChgSum5_ :=: InvSum5_  but no value is passed to
> > the fields of ChgSum.

> > What am I doing wrong ?

> > Thanks

> > Jason Austin

--
! Jim Katz
! Certified Clarion Developer
! Author: ABC DLL Toolkit  Maintainer: DEF for ABC,DET for
Legacy          
! Web Site: http://www.iag.net/~jimkatz/
! Company:  iTradeZone,Inc.
! Using Clarion for Windows - Always looking for the simpler solution.


Wed, 13 Aug 2003 21:43:49 GMT  
 Deep assignment
Jason,

    Deep Assignment principle:
        (1)  At least 1 VarName in the Target should exactly match that of
the  Source
        (2)  Executing the deep assignment assigns the value from the Source
               for each matching VarName in the Target, ignoring those
unmatched                 VarName
        (3) Assigment syntax
                    File to Queue            ListQueue :=: RPH:Record
                    Queue To File          XYZ:Record :=: ListQueue
                    File1 to File2             DEF:Record :=: OPQ:Record
                    Queue1 to Queue2    NameQue2 :=:  NameQue1

Good Luck

Willie C. Nagtalon


Quote:
> Can anyone help please with the form for using a deep assignment.

>                     Destination file:
> Source file:

> File name:  ChgSum5.Tps
> InvSum5.Tps
> Prefix:        ChgSum
> InvSum
> File path:    !ChgSum5_
> !InvSum5_

> I get a syntax error if I use either of

>             ChgSum :=: InvSum
> or         ChgSum5 :=: InvSum5

> It compiles OK if I use ChgSum5_ :=: InvSum5_  but no value is passed to
> the fields of ChgSum.

> What am I doing wrong ?

> Thanks

> Jason Austin



Thu, 14 Aug 2003 12:50:44 GMT  
 Deep assignment
Many thanks all.

Jason

Quote:

> Jason,

>     Deep Assignment principle:
>         (1)  At least 1 VarName in the Target should exactly match that of
> the  Source
>         (2)  Executing the deep assignment assigns the value from the Source
>                for each matching VarName in the Target, ignoring those
> unmatched                 VarName
>         (3) Assigment syntax
>                     File to Queue            ListQueue :=: RPH:Record
>                     Queue To File          XYZ:Record :=: ListQueue
>                     File1 to File2             DEF:Record :=: OPQ:Record
>                     Queue1 to Queue2    NameQue2 :=:  NameQue1

> Good Luck

> Willie C. Nagtalon



> > Can anyone help please with the form for using a deep assignment.

> >                     Destination file:
> > Source file:

> > File name:  ChgSum5.Tps
> > InvSum5.Tps
> > Prefix:        ChgSum
> > InvSum
> > File path:    !ChgSum5_
> > !InvSum5_

> > I get a syntax error if I use either of

> >             ChgSum :=: InvSum
> > or         ChgSum5 :=: InvSum5

> > It compiles OK if I use ChgSum5_ :=: InvSum5_  but no value is passed to
> > the fields of ChgSum.

> > What am I doing wrong ?

> > Thanks

> > Jason Austin



Thu, 14 Aug 2003 09:11:55 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Deep Assignments - How?

2. Deep Assignment (:=:)

3. deep assignment

4. Has deep assignment changed?

5. ABC newbie: How do I use deep assignment to copy records

6. Deep assignment

7. Deep Assignment

8. Deep Assignment

9. Deep Thoughts by Jack Handey (Req CW15 to run) - deep.zip (2/2)

10. Deep Thoughts by Jack Handey (Req CW15 to run) - deep.zip (1/2)

11. No Assignment in Conditional/PROPOSAL: Assignment expression

12. Dolphin deepCopy, seems deeper than I thought?

 

 
Powered by phpBB® Forum Software