CFMX 7
If I have a structure "stEventPayOptions" like this:
stEventPayOptions.PayOptionID, stEventPayOptions.PayOption
with this data:
1, Cash or Check
2, Credit Card
3, Gift Card
4, Invoice
how could I find the stEventPayOptions.PayOptionID key if I know the
stEventPayOptions.PayOption value is "invoice"? I need to be able to
pull out the stEventPayOptions.PayOptionID key value of "4".
If I run the following:
<cfset thePayOptionID = StructFindValue(#stEventPayOptions#, "invoice")>
<cfdump var="#thePayOptionID#">
it returns "an array of structures, one structure for each find of the
specified value" (according to the docs), like this:
array
1 struct
key 4
owner struct
1 cash or check
2 credit card
3 gift card
4 invoice
path .4
How can I access the value "4" of "key" in this structure?
TIA.
--
Best regards,
Chris Montgomery
210-490-2415
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279291
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4