QDESIGN - 'DEFINE' vs 'TEMP'

Robert J.M. Edis Robert.Edis@creatcomp.com
Thu, 29 Oct 1998 12:11:57 -0500


G'day Carol

You wrote>
> I recently attended the Advanced Powerhouse Level 1 class.  I was
> taught
> that it was better to use TEMP items than DEFINED items because
> DEFINED
> items are only evaluated when you display the field or press enter at
> the field.  However, the QDESIGN manual states that DEFINED items are
> evaluated everytime they are referenced (which was my understanding
> until I took the class).
> 
> Can anyone explain when to use a DEFINED item versus a TEMP item in
> QDESIGN?  Do the same rules apply to QUIZ and QTP?
> 
> I generally use DEFINED items when the value of the variable does not
> change based on different input conditions.  I use TEMP items when the
> value of the variable changes based on different input conditions.
	<end quote. 

	I use a similar rule where I will use DEFINE for items whose
values are not to be manipulated and TEMP for items whose values will
be.  E.g. DEFINE for a constant value or equation, TEMP for a counter.

	Quiz dosen't have TEMPs though.

	My understanding is that a TEMP declaration reserves a
particular memory address to hold the variable for the duration of the
phase whereas a DEFINE acts more like a macro and grabs an available
memory address at execution.  It depends on the nature of the logic as
to which is more efficient.

	Please correct me if this is wrong anybody.

	Blue
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.