understanding how define affects field initialized from temporary

Chris Sharman chris.sharman@ccagroup.co.uk
Tue, 14 Dec 2004 09:48:51 +0000


Lorry Litman wrote:
> If I change the item initial statement
> from 
>  item emp_no of empfile initial t_emp_no if entrymode
> to
>  item emp_no of empfile initial t_emp_no
> the record gets written to the table with the correct emp_no value.

'initial' implies entrymode, iirc, so the 'if entrymode' is redundant.

As far as the define goes, what's the initial/default value of 
emp_rpt_flag ?
Might

def d_rpt_flag char * 6 = "" if newrecord of empfile else ...

be better ?

Chris


-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.