Page 1 of 1

field function

Posted: Sat Oct 22, 2011 1:21 pm
by just4u_sharath
Hello,
I have used fieldfuction like this
field("88/For the Home/Bathroom Furniture/Wall % Floor Cabinets/" ,"&",1)

output I got is 88/For the Home/Bathroom Furniture/Wall % Floor Cabinets/

as per manual it should have returned me "".

Thanks

Posted: Sat Oct 22, 2011 4:07 pm
by jwiles
Where does it say that in the manual? According to the docs, it returned what you asked for (field #1).

Regards,

Posted: Sat Oct 22, 2011 11:39 pm
by pandeesh
My suggestion is to check for & first in the input.
If & presents then use field, else "".
You can code as above.
That will suite your requirement i believe,

Posted: Sun Oct 23, 2011 7:30 am
by chulett
jwiles wrote:Where does it say that in the manual? According to the docs, it returned what you asked for (field #1).
I agree and you got exactly what I would have expected. Can you post the verbiage from the documention that you mentioned? Perhaps when it comes to the wording, they choose... poorly. :wink:

Posted: Sun Oct 23, 2011 7:34 am
by chulett
pandeesh wrote:That will suite your requirement i believe
Not sure there's a "requirement" to be met here, at this point all we have is a question.