QDESIGN - 'DEFINE' vs 'TEMP'

Michel Rioux mrioux@iline.com
Thu, 29 Oct 1998 01:36:09 -0500


My rule of thumb is i ALWAYS try to use a temp when i want the variable,
field (whatever you want to call it) to be added to the record complex.  If
it belongs to the key index of the complex it should be a temporary item.

As soon as there is a condition that i can declare in one line I use a
Define, if it's for reporting purposes, but always an TEMP for entry.

I.E.

define def-sex char*6 = "male" if emp-male = "M" else "female" if emp-sex =
"F" else " "


MiKe

-----Original Message-----
From: Carol Kaffenberger <kaffenbe@karmanos.org>
To: powerh-l@lists.swau.edu <powerh-l@lists.swau.edu>
Date: Thursday, October 29, 1998 11:58 AM
Subject: QDESIGN - 'DEFINE' vs 'TEMP'


>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.
>
>Thanks.
>
>Carol Kaffenberger
>HP3000 - MPE/ix - Release C.55.00
>PH Version 7.29.C8
>

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.