Progress
Version 9
Product Update Bulletin


Example 5 — Setting an Attribute

Example p-diexm5.p sets the SESSION handle’s NUMERIC-FORMAT attribute to "european."

p-diexm5.p
/* set SESSION:NUMERIC-FORMAT to "european" */ 
hCall:IN-HANDLE = "session". 
HCALL:CALL-TYPE = SET-ATTR-CALL-TYPE. 
hCall:CALL-NAME = "numeric-format". 
hCall:NUM-PARAMETERS = 1. 
hCall:SET-PARAMETER( 1, "CHAR", "INPUT", "european"). 
hCall:INVOKE. 

In contrast to Example p-diexm4.p, Example p-diexm5.p:


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095