Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > Statements Reference > Guidelines for Using Siebel eScript > For In StatementThe For In statement loops through the properties of an associative array or object. You cannot use it with a nonassociative array. For more information, see About Associative Arrays. You cannot write code that references a property that is marked with the DONT_ENUM attribute in a For In statement. The DONT_ENUM attribute is a predefined attribute that you cannot modify. Formatfor (LoopVar in object) Table 21 describes the arguments for the For In statement. The statement block runs one time for every element in the associative array or property of the object. ExampleThe following example creates an object named obj, and then uses the For In statement to read the object properties: function PropBtn_Click () obj.number = 32767; for (propName in obj) Running this code produces the following results: The value of obj.number is 32767. For an example of the For In statement used with an associative array, see About Associative Arrays. |
![]() ![]() |
Siebel eScript Language Reference | Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |