need help learning ABC template use 
Author Message
 need help learning ABC template use

Hi Harvey,
The embed point that you want to use is called TakeRecord, and your code can be
pretty much used as is except for the line which adds the record. In ABC OOP
code this would be:
ACCESS:TimeClockPunches.Insert()

HTH

Quote:

> I have C5 EE gold but have only used the "Clarion" templates.  Using the
> Sequential Process procedure to read one file and write a new file the
> following code was placed in the "activity for each record"  and worked well.

>          COUNTER#                     +=1
>          TCP:TimeClock_SeqID        = COUNTER#
>          TCP:EmplyeeID                   = F1R:EmplyeeID
>          TCP:PunchStatus                 = F1R:PunchStatus
>          TCP:Time                            = F1R:Time
>          TCP:DayOfWeek                 = F1R:DayOfWeek
>          TCP:Date                             = F1R:Date
>          TCP:FaultIndicator                 = COUNTER#
>          ADD(TimeClockPunches) ! add a new record to second "other" file
>          clear(TimeClockPunches)

> Now I'd like to learn about ABC template use.  Which embed point and what code
> will work ?

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


Sun, 15 Jul 2001 03:00:00 GMT  
 need help learning ABC template use

Hi Harvey,
     The embed point you want to use is ThisProcess.TakeRecord (after the parent call).  The code you have will work completely as you have here.  I would make a couple of changes though.  First, change the implicit variables to local variables declared in the data section of the procedure.  The ABC's generate methods (procedures) and the scope changes for implicits.  This may cause problems if you ever have to refer to any of the implicits in any of the other methods.  Second, I would change the ADD(TimeClockPunches) to the file manager method call of:  ACCESS:TimeClockPunches.INSERT() as this will take advantage of the file manager object checking RI as well as error handling.  But it will work just as written here just fine.

    I have C5 EE gold but have only used the "Clarion" templates.  Using the Sequential Process procedure to read one file and write a new file the following code was placed in the "activity for each record"  and worked well.
             COUNTER#                     +=1
             TCP:TimeClock_SeqID        = COUNTER#
             TCP:EmplyeeID                   = F1R:EmplyeeID
             TCP:PunchStatus                 = F1R:PunchStatus
             TCP:Time                            = F1R:Time
             TCP:DayOfWeek                 = F1R:DayOfWeek
             TCP:Date                             = F1R:Date
             TCP:FaultIndicator                 = COUNTER#
             ADD(TimeClockPunches) ! add a new record to second "other" file
             clear(TimeClockPunches)

    Now I'd like to learn about ABC template use.  Which embed point and what code will work ?



Sun, 15 Jul 2001 03:00:00 GMT  
 need help learning ABC template use

Quote:

> Hi Harvey,
> The embed point that you want to use is called TakeRecord, and your code can be
> pretty much used as is except for the line which adds the record. In ABC OOP
> code this would be:
> ACCESS:TimeClockPunches.Insert()

> HTH


> > I have C5 EE gold but have only used the "Clarion" templates.  Using the
> > Sequential Process procedure to read one file and write a new file the
> > following code was placed in the "activity for each record"  and worked well.

> >          COUNTER#                     +=1
> >          TCP:TimeClock_SeqID        = COUNTER#
> >          TCP:EmplyeeID                   = F1R:EmplyeeID
> >          TCP:PunchStatus                 = F1R:PunchStatus
> >          TCP:Time                            = F1R:Time
> >          TCP:DayOfWeek                 = F1R:DayOfWeek
> >          TCP:Date                             = F1R:Date
> >          TCP:FaultIndicator                 = COUNTER#
> >          ADD(TimeClockPunches) ! add a new record to second "other" file
> >          clear(TimeClockPunches)

> > Now I'd like to learn about ABC template use.  Which embed point and what code
> > will work ?

> --
> ! 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.

Thank you ever so much. I've been reading the Doc files and with your help , I think
I''m beginning to catch on.

Harvey



Mon, 16 Jul 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Update template (ABC) with PostgreSQL (insert record using serial problem)

2. ABC Free template using Tray Subclass

3. Closing window half way through OK button using ABC/Update Templates

4. ABC Free Templates: Using Tray Icon Class AND Instance Limiter

5. Can RichX be used with ABC Templates?

6. ABC Select Directory template ABC

7. Need help with EasyFTP templates (repost Templates and Third_Party ng)

8. ABC templates... can i change an applications templates

9. Clarion templates to ABC templates

10. Conersion from Clarion Templates to ABC templates

11. SQL and Clarion template vs ABC template

12. Nettools Template for Clarion 5 for ABC Templates

 

 
Powered by phpBB® Forum Software