The only way I can see you doing this is to define constants which act as indexes for the fields within the type .. sort of like this ..
const I_x = 1
const I_y = 2
const I_z = 3
const I_Strength = 4
Search( I_Strength , 100 )
function search.stuff( field , value )
for s.stuff = each stuff
select field
case I_x
If s\x = value return s
case I_Strength
If s\Strength = value return s
etc.....
end select
next
return null
end function
const I_x = 1
const I_y = 2
const I_z = 3
const I_Strength = 4
Search( I_Strength , 100 )
function search.stuff( field , value )
for s.stuff = each stuff
select field
case I_x
If s\x = value return s
case I_Strength
If s\Strength = value return s
etc.....
end select
next
return null
end function