On Mon, 2 Feb 2015, Edgaonkar, Shrirang wrote: > I am trying this. > findall(goodsinfo{ goodsid:GoodsId, goodsname:GoodsName, term:Term, searchViews:Searchviews },(member(X, Result), X=goodsinfo(101, _, _, _)),Sols), The first argument of findall should be a variable that is given a value by the success of the second argument. If, as above, the first argument does not occur in the second argument, it's almost certainly an error; you're going to get a list of variables not bound to results. Try this: findall(X,(member(X,Result),X=goodsinfo{goodsid:101}),Sols). -- Matthew Skala mskala_at_ansuz.sooke.bc.ca People before principles. http://ansuz.sooke.bc.ca/Received on Mon Feb 02 2015 - 09:23:52 CET
This archive was generated by hypermail 2.2.0 : Mon Feb 02 2015 - 12:13:24 CET