home *** CD-ROM | disk | FTP | other *** search
- <<* APPSTOR.INC *>>
- <<#
-
- procedure GenStoreBody
- begin
- genln( '* ---Initialize memvars with field contents.' )
- forall (fldtyp $ 'CDLN') and (fldals <> 'M')
- genln( 'STORE ',ljust( fldnam,10 ),' TO ',fixfldnam )
- endfor
- end GenStoreBody
-
-
- <<*
- function GetMemVal : string
- string line
- begin
- if fldini
- RETURN fldini
- else
- if fldtyp = 'C'
- line := 'SPACE(' + str( fldwid,3 ) + ')'
- elsif fldtyp = 'D'
- line := 'CTOD(" / / ")'
- elsif fldtyp = 'L'
- line := '.F.'
- else
- if (flddec = 0)
- line := '0 '
- else
- line := '0.00 '
- endif
- endif
- RETURN line
- endif
- end GetMemVal
-
-
- procedure GenBlankBody
- begin
- genln( '* ---Initialize memvars with blanks.' )
- forall (fldtyp $ 'CDLN') and (fldals <> 'M')
- genln( 'STORE ',GetMemVal,' TO ',fixfldnam )
- endfor
- end GenBlankBody
- *>>
-
- <<* EOF: APPSTOR.INC *>>
- #>>