Consultor Eletrônico



Kbase P2040: Example of unless-hidden option in the display command
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/22/2003
Status: Unverified

GOAL:

Example of unless-hidden option in the display command

FIX:

DEFINE FRAME c
customer.NAME SKIP
customer.address SKIP
customer.city SKIP.

find first customer.
/* address:hidden=true. */
/* hide address in frame c. */
display unless-hidden customer.name customer.address customer.city with frame c.
/*******End of example*********/

1) When executing this code as it is (connected to sports DB) the three fields in the display will appear in the frame.
2) When uncommenting the /* address:hidden=true. */ or the /* hide address in frame c. */ the address field is not displayed in the frame.
3)When taking out the unless-hidden option from the display the three fields are always displayed.