![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual Download Page 360](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369360.webp)
334
Developing Web Applications with ColdFusion
{
short s;
long l;
float d;
};
struct NestedStruct
{
SimpleStruct f;
char c;
string s;
};
typedef sequence<long, 5> BLongSequence;
interface SomeObject {
short SomeMethod( in NestedStruct inStruct, in BlongSequence inSeq);
};
The applicable ColdFusion code
<!—Declare a couple of structures -‡
<CFSET x = StructNew()>
<CFIF IsStruct(x)>
<CFSET temp=StructInsert(x,"s",3)>
<CFSET temp=StructInsert(x,"l", 256)>
<CFSET temp=StructInsert(x,"d", 93.45)>
</CFIF>
<CFSET NestedStruct = StructNew()>
<CFIF IsStruct(xx)>
<CFSET temp=StructInsert(NestedStruct,"f",x)>
<CFSET temp=StructInsert(NestedStruct,"c", 'b')>
<CFSET temp=StructInsert(NestedStruct,"s", " bu-bu")>
</CFIF>
<!—Declare a sequence -‡
<CFSET FixedSeq = ArrayNew(1)>
<CFLOOP INDEX="LoopCount" FROM="1" TO="5">
<CFSET FixedSeq [LoopCount] = #LoopCount#>
</CFLOOP>
<CFSET retA=obj.SomeMethod(NestedStruct, FixedSeq)>
Exception handling
Exceptions thrown by the CORBA object methods can be caught with the CFTRY and
CFCATCH tags. However, no information can be extracted from the exception object in
this release.
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...