Kurt Wendt wrote on 2011-12-12: > I think I have to agree w/Lou & Dan Covill - about Beautify being more > like Uglify! > > I tried your suggestion (which, for the most part, the way you suggested > to run it is how I normally do it) - except I normally do Tabs as the > Indents instead of Spaces. So - I tried Spaces - but, I still got > problems. I then looked down thru the code - and was trying to match up > an Enddo with the Do While WAY Above it - only to find out that things > were NOT line up starting at a particular point in the code. So - I > tried doing some realignment myself - but, it's a BIG program - and it's > a bit of a difficult task! Oh well... > > -K- > > -----Original Message----- > From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] > On Behalf Of kamcgin...@gmail.com > Sent: Saturday, December 10, 2011 1:25 PM > To: profoxt...@leafe.com > Subject: Re: Problems Using VFP Beautify... > > If you have a mixture of tabs and spaces you can get some strange > indentations. > > For Keywords: Mixed case, > Symbols: match first occurance > Type of indentation change to spaces and change the number to 3 click > all the 'text to indent', 'extra indent beneath' > > Don't highlight any text and this will beautify the entire file. > > ----- Original Message ----- > From: "Kurt Wendt" <kurtwe...@waitex.com> > To: <profox@leafe.com> > Sent: Friday, December 09, 2011 12:44 PM > Subject: Problems Using VFP Beautify... > > I tend to use this tool in VFP a good bit - especially since a lot of > the code where I work tends to be REALLY SLOPPY - making it harder to > read. > > One of the problems - is that they all make one long code - instead of > making things more procedural. The problem then becomes matching up the > tops and bottoms of loops - when trying to review code and look for a > problem. So - I use Beautify to clean up the Indentation - which then > generally makes it MUCH easier to see Loop structures. > > However, the problem I have is that Beautify doesn't always work. So - > even after doing it - I go to the beginning of a Do While - and if I > then scroll directly down in the code - it all generally indents in > farther - then comes back out. Except - instead of an Enddo matching up > with the same indentation - I may find like an Endif. > > Anybody know why it doesn't always work right? Is there Bugs in > Beautify? > > Thanks, > -K- >
Kurt, Sounds like it's time to refactor. If you highlight the apparent beginning of the DO WHILE to the ENDDO, copy it to a new PRG, run Beautify there, does it clean it up? If it does, perhaps there's a number of lines limitation in Beautify. Tracy Pearson PowerChurch Software _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/002b01ccb911$da7009e0$8f501da0$@powerchurch.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.