LPARAMETERS tcFieldname RETURN EVALUATE(THIS.Aliasname + "." + tcFieldname)and the setvalue() method is as follows:
LPARAMETERS tcFieldname, tvValue REPLACE (tcfieldname) WITH tvvalue IN (THIS.AliasName)In your form, do the following code:
MainapplicationObject.NEWOBJECT("Datamapper","Datamapper","LibraryWhereDatamapperexist") MainapplicationObject.Datamapper.Aliasname = ??? *you should know the aliasname here. MyValue = MainapplicationObject.Datamapper.GetValue("MyField")What do you think?