Finally - its good to see the values :) ... I used (show @@). I see, so @@ is just a "variable" introduced in the select function - i got a little confused by (@@) - I thought it was a function call - but looks like select takes the argument unevaluated :) (love the (vi 'select) )
I noticed that the variable name has to start with @ - It does not work if I use a name without @ - why is that? Also, I noticed that functions in the form library have their parameter names in the string format (for example (de form ("Attr" . "Prg")) - I am curious about that too. Regards, Kashyap On Mon, Oct 21, 2019 at 6:42 AM Alexander Burger <a...@software-lab.de> wrote: > On Mon, Oct 21, 2019 at 06:16:41AM -0700, C K Kashyap wrote: > > Thank you Alex, > > I get the following when I run the (?) - for which I defined a function > XX. > > Good. > > > I do see that I get back 1 record when *CuSuNm is "Oaks" and 3 records > when > > *CuSuNm is "". However, I don't see the actual values - except for @Nm. > > > @Nr=NIL @Nm="Oaks" @Tel=NIL @Plz=NIL @Ort=NIL @Mob=NIL @@={C2} > > Yes. '?' shows all unified Pilog variables. As the object is bound to > '@@', we > see '{C2}' but that's not so very helpful. > > You can use the 'show' predicate to view them: > > : (? ... (select (@@) ...) (show @@)) > > or pick individual properties > > : (? ... (select (@@) ...) (val @Nm @@ nm) (val @Tel @@ tel)) > > then '@Nm' and '@Tel' will be unified to the proper values and shown in the > results. > > > > While at it, could you also explain the @/@@ convention? Is there a doc I > > could read for this? > > '@@' is just the implicit variable used in the GUI. Outside of GUI usage > you can > use any name, e.g. > > : (? ... (select (@CuSu) ... > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >