Index
2011-12-09 15:44 – Kurt Wendt : Problems Using VFP Beautify...
2011-12-09 16:41 – Tracy Pearson : RE: Problems Using VFP Beautify...
2011-12-09 16:44 – Kevin Cully : Re: Problems Using VFP Beautify...
2011-12-09 16:46 – Kurt Wendt : RE: Problems Using VFP Beautify...
2011-12-09 17:34 – Lou Syracuse : RE: Problems Using VFP Beautify...
2011-12-10 13:25 – <kamcginnis@gmail.com>: Re: Problems Using VFP Beautify...
2011-12-10 16:07 – Rick Schummer : RE: Problems Using VFP Beautify...
2011-12-12 15:19 – Kurt Wendt : RE: Problems Using VFP Beautify...
2011-12-12 16:06 – Tracy Pearson : RE: Problems Using VFP Beautify...
Back to top
Problems Using VFP Beautify...

Author: Kurt Wendt

Posted: 2011-12-09 15:44:01   Link

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-

Senior Developer

Waitex Information System, Inc.

P Save a tree. Don't print this e-mail unless it's really necessary.

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

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/289EA162F5642645B5CF64D624C66A140B7CE66E@us-ny-mail-002.waitex.net

** 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.

©2011 Kurt Wendt
Back to top
RE: Problems Using VFP Beautify...

Author: Tracy Pearson

Posted: 2011-12-09 16:41:53   Link

Kurt Wendt wrote on 2011-12-09:

> 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,

If you have an area highlighted, doesn't it just Beautify the selection?

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/002f01ccb6bb$5e3df4c0$1ab9de40$@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.

©2011 Tracy Pearson
Back to top
Re: Problems Using VFP Beautify...

Author: Kevin Cully

Posted: 2011-12-09 16:44:21   Link

Also take a look at BeautifyX from the VFPX project on Codeplex. Has

some good options that extends Beautify.

-Kevin

On 12/09/2011 04:41 PM, Tracy Pearson wrote:

> If you have an area highlighted, doesn't it just Beautify the selection?

--

Kevin Cully

CULLY Technologies, LLC

678-929-7762

kcully@cullytechnologies.com

_______________________________________________

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/4EE28135.60409@cullytechnologies.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.

©2011 Kevin Cully
Back to top
RE: Problems Using VFP Beautify...

Author: Kurt Wendt

Posted: 2011-12-09 16:46:03   Link

I just tried that. I messed up indenting on a chunk of code - and even

some code above it. But, when I selected that Chunk - it fixed up BOTH

the selected chunk - as well as the bit of code a little bit above that.

So - it seems that it ALWAYS works on the Entire program code in one

shot.

-K-

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

On Behalf Of Tracy Pearson

Sent: Friday, December 09, 2011 4:42 PM

To: profoxtech@leafe.com

Subject: RE: Problems Using VFP Beautify...

Kurt Wendt wrote on 2011-12-09:

> 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,

If you have an area highlighted, doesn't it just Beautify the selection?

Tracy Pearson

PowerChurch Software

[excessive quoting removed by server]

_______________________________________________

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/289EA162F5642645B5CF64D624C66A140B7CE670@us-ny-mail-002.waitex.net

** 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.

©2011 Kurt Wendt
Back to top
RE: Problems Using VFP Beautify...

Author: Lou Syracuse

Posted: 2011-12-09 17:34:44   Link

I think that is why Dan Covill calls it "uglify rather than "beautify" Lol

ls

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kurt Wendt

Sent: Friday, December 09, 2011 1:46 PM

To: profoxtech@leafe.com

Subject: RE: Problems Using VFP Beautify...

I just tried that. I messed up indenting on a chunk of code - and even

some code above it. But, when I selected that Chunk - it fixed up BOTH

the selected chunk - as well as the bit of code a little bit above that.

So - it seems that it ALWAYS works on the Entire program code in one

shot.

-K-

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

On Behalf Of Tracy Pearson

Sent: Friday, December 09, 2011 4:42 PM

To: profoxtech@leafe.com

Subject: RE: Problems Using VFP Beautify...

Kurt Wendt wrote on 2011-12-09:

> 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,

If you have an area highlighted, doesn't it just Beautify the selection?

Tracy Pearson

PowerChurch Software

[excessive quoting removed by server]

_______________________________________________

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/0BAC2C1927422843B2C121C8B41684AF0F17E8C2@DFW1MBX24.mex07a.mlsrvr.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.

©2011 Lou Syracuse
Back to top
Re: Problems Using VFP Beautify...

Author: <kamcginnis@gmail.com>

Posted: 2011-12-10 13:25:08   Link

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" <kurtwendt@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-

Senior Developer

Waitex Information System, Inc.

P Save a tree. Don't print this e-mail unless it's really necessary.

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

[excessive quoting removed by server]

_______________________________________________

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/033e01ccb769$0cdd4aa0$7a00a8c0@w2k3s02

** 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.

©2011 <kamcginnis@gmail.com>
Back to top
RE: Problems Using VFP Beautify...

Author: Rick Schummer

Posted: 2011-12-10 16:07:10   Link

>>Also take a look at BeautifyX from the VFPX project on Codeplex. Has some good options that extends Beautify.<<

Just to clarify a bit, BeautifyX is part of Thor and PEM Editor, so don't look for it as an independent project.

Rick

White Light Computing, Inc.

www.whitelightcomputing.com

www.swfox.net

www.rickschummer.com

_______________________________________________

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/002f01ccb77f$af2774f0$0d765ed0$@whitelightcomputing.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.

©2011 Rick Schummer
Back to top
RE: Problems Using VFP Beautify...

Author: Kurt Wendt

Posted: 2011-12-12 15:19:17   Link

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-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

On Behalf Of kamcginnis@gmail.com

Sent: Saturday, December 10, 2011 1:25 PM

To: profoxtech@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" <kurtwendt@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-

Senior Developer

Waitex Information System, Inc.

P Save a tree. Don't print this e-mail unless it's really necessary.

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

[excessive quoting removed by server]

_______________________________________________

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/289EA162F5642645B5CF64D624C66A140B7CE67B@us-ny-mail-002.waitex.net

** 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.

©2011 Kurt Wendt
Back to top
RE: Problems Using VFP Beautify...

Author: Tracy Pearson

Posted: 2011-12-12 16:06:01   Link

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-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

> On Behalf Of kamcginnis@gmail.com

> Sent: Saturday, December 10, 2011 1:25 PM

> To: profoxtech@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" <kurtwendt@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.

©2011 Tracy Pearson