` Printed Icetips Article

Icetips Article



Par2: Autonumbering compound keys TPS
1998-08-21 -- Jim Katz
 
You must prime the high order key element before the call to the
FileManager's PrimeRecord method. In the embed for the browse, if you
are calling the form from a browse, for the browse Manager's PrimeRecord
method, priority less than 5000:

TRA:TranType = I 

If you are doing it manually then:

Clear(TRA:Record)
TRA:TranType = I
Access:TranType.PrimeRecord(1) 

 !! the parameter of 1 means that the
PrimeRecord method will not clear the buffer before creating the new
record.



Printed November 21, 2024, 6:50 am
This article has been viewed/printed 35188 times.