Bob: Another thought to watch out for.
As you know in some cases 4D names some of it’s own things starting with a ‘$’. For example a Process name can be named starting with a ‘$’. If you have strictly named local variables those should be easy to filter out. Jody > On Apr 27, 2018, at 9:54 AM, Bob Miller via 4D_Tech <[email protected]> > wrote: > > Hello, > > Has anyone created a macro to check a method to make sure all its local > variables are declared? > > I've thought about undertaking such a thing, but as it probably involves > getting into regular expressions, I've been looking forward to doing this > with some dread. > > If anyone has done this already and is willing to share, I'd be much > obliged! > > The "tough" issue for me is "how to identify a local variable": > - it begins with a $ > - it may end with any of these characters: space, equals, semicolon, > colon, dash, left paren, left curly brace, end of line, or any arithmetic > or comparison operator > - it is not fully enclosed in quotes; example: "$ ###,###.00" is a format, > not a local variable, but I'm ignoring EXECUTE ON SERVER, etc. > > I'm probably making a mountain out of a molehill, but hey, that's what > this list is for - to let people show me exactly that. I appreciate it. > > > Bob Miller > Chomerics, a division of Parker Hannifin Corporation > ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

