Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADDING OR APPEND

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I want to add or append severals registers from a table to another using a PROCESS with clarion 5.5.
It doesn't matter if they are duplicated.
Thanks
 
Dunno if ya already are over it
but here ya'd some code that I'd used often:
Code:
!SourceTable PRE(SOU)
!TargetTable PRE(TAR)

SET(SourceTable)  !Prepare for secuential proccess
LOOP UNTIL Access:SourceTable.Next()
  TAR:RECORD :=: SOU:RECORD !Deeper Assignment
  !TAR:RECORD = SOU:RECORD !if identical file layuout
  ACCESS:TargetTable.PrimeRecord(TRUE)!Prime record using..|
       !Actual record's buffer
  ACCESS:TargetTable.TryInsert()
END
Adios -----
carabez@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top