I'm trying to write a function which will print out values of the KnownProperties of my USER variables. I can list the Known Properties easily enough, BUT, when I attempt to construct a string for EvalString; I get into trouble.. Gap wants to resolve the function rather than use it.. If that makes sense. Anyway, I could probably make things work if I knew how to write a function that just returns it's name as a string.
The code below is the last of many trials that almost but DID NOT work. Any help appreciated.. uu:="abc"; dkpp:=function(obj) local cr,lo,elo,nlo,kpl, i, kpv; cr:="\n"; kpl:=KnownPropertiesOfObject(obj); for i in [1 .. Size(kpl)] do; lo:=kpl[i]; #elo:=(Concatenation(lo,(obj))); elo:=lo; Print(obj); Print(elo); elo(obj); Print(EvalString(elo),cr); od; end; dkpp(uu); dkpp(1); Tom .... _________________________________________________________________ Express your personality in color! Preview and select themes for HotmailĀ®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme_______________________________________________ Forum mailing list [email protected] http://mail.gap-system.org/mailman/listinfo/forum
