Add, 4D Write expressions did not require a value to be returned, so it was acceptable to have embedded Query, Create Set, Intersection, Union, Use Set, Selection to Array, etc…, commands in the 4D Write document.
Converted to WritePro, the same expressions return “Undefined”. It is a change in behavior that requires editing 1000’s of documents. And WritePro does not provide an easy way to replace those expressions with a method call that will not return “Undefined”. David Ringsmuth From: Add Komoncharoensiri via 4D_Tech Sent: Friday, December 21, 2018 11:56 AM To: 4D iNug Technical Cc: Add Komoncharoensiri Subject: Re: WritePro expression undefined Hi David, If you are insert an expression into a 4D Write Pro document, the expression should return a value. For example: 100+90 Current date projectMethodThatReturnAValue For QUERY command, the execution will produce a selection of record in memory. It does not return a value that can be inserted to the document. Regards, Add On 12/20/18, 2:05 PM, "4D_Tech on behalf of David Ringsmuth via 4D_Tech" <[email protected] on behalf of [email protected]> wrote: John, We can manually limit the entry of commands and methods, since we control the UI that inserts expressions. It would be easier is the command SET ALLOWED METHODS did this for us automatically. Thanks for your help John! David Ringsmuth ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

