What version of 4D are you using? The best way to handle this is to use PROCESS 4D TAGS. You can create a sort of mini-method and then execute it on the fly. Here is a simple example:
tMethod:="<!--#4DCODE"+char(13) tMethod:=tMethod+"// Here is a comment to describe this script"+char(13) tMethod:=tMethod+"$iCount:=100"+char(13)+"For $i;1;$iCount)"+char(13) tMethod:=tMethod+"// do whatever "+char(13) tMethod:=tMethod+"End for"+char(13) tMethod:=tMethod+"-->" Then to execute it you just call EXECUTE METHOD(tMethod) A warning ... Since the code runs uncompiled, if there are any errors the end user will see stuff that you probably don't want them to see. You should install an error handler before running the method, which will catch and quietly deal with any errors. HTH Pat On Thu, 16 Jul 2020 at 19:34, stardata.info via 4D_Tech < [email protected]> wrote: > > > > > > > > > > > > > Hi all, > > Some one have experience with execute method command? > > I've need to insert some rows of 4D commands in one text field of a > table, and after to execture this rows of code as a method. > > Can i create programmatically method and after execute this method using > EXECUTE METHOD? > > EXECUTE FORMULA have a limitated feature. > > Thanks for your help > > Ferdinando > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > New Forum: https://discuss.4D.com > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

