Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Filter data of a structure

7 views
Skip to first unread message

dede_bo

unread,
Apr 5, 2018, 10:23:30 AM4/5/18
to
Hi everybody

Question on structure in CF10

I have a structure with the following values:

Struct name : Test

Key Value
Fruit.apple | 10
Fruit.orange | 12
Fruit.lemon | 11
Vegetable.Broccoli | 15
Vegetable.Spinach | 12


In the exercice, I would like to filter the struct with all key beginning with
'Fruit'


Following my ideas, the instruction is :

cfset result = StructFindKey(Test,'Fruit','All')

The result is : empty !

In theory :

Key Value
Fruit.apple | 10
Fruit.orange | 12
Fruit.lemon | 11

Where is my mistake?

Thanks
Best regards
dede

0 new messages