home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource1
/
chint
/
useful16.hnt
< prev
next >
Wrap
Text File
|
1992-06-16
|
978b
|
27 lines
/*
How to adjust a calculation, (compute field), that you don't want to
display on the window.
*/
Normally a compute expression that has the result displayed on the screen
might look similar to the following :--
strcpy({},${!{3.QUANTITY} * !{3.UNIT_PRICE}})
This compute field can be "Adjusted" into totals in a linked parent file.
Because there is a pair of curly braces ,"{}", in the expression DataBoss
will ask you to mark the field in a window for display purposes. So to
suppress the display we must remove the "{}".
We can trick DataBoss into generating the correct code for the compiler and
the correct adjust routine if we remove the first part of the expression,
and enclose the remaining code in comment characters. Note that it is
important to ensure the comment starts at the very begining of the
Key/Compute Expression entry box.
The resultant Key/Compute Expression is :--
/*${!{3.QUANTITY} * !{3.UNIT_PRICE}})*/