OK, I think I've got what you are attempting. Try this:
For i = 1 To UBound(Aray)
..............
..........
Select Case value
Case "LAYER"
objprop = objEnt.Layer
Case "COLOR"
objprop = objEnt.Color
End Select
HTH,
Jeff
"herve" wrote in message
news:10675457.1077204590971.JavaMail.jive@jiveforum2.autodesk.com...
> Hello
> I try to send object property as argument to a function in vba
> this function must sort objects by "LAYER" or "COLOR"
> but i don't know how to use this argument in the function
>
> Public Function tri_par ( Aray , value)
> For i = 1 To UBound (aray)
> ..............
> ..........
> objprop = objent.value (where value is equal to "LAYER" or "COLOR")
> doesn't seems to be right
>
> if it isn't possible, Is there a command that accept dxf code as argument
?
> That irritates me, if I succeeded not, I go back in Lisp ;)
>
> Thank for help me.