Author Topic: Code-Formatter PB 10  (Read 158588 times)

0 Members and 1 Guest are viewing this topic.

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Code-Formatter PB 10
« Reply #255 on: March 19, 2012, 11:05:04 PM »
One of the benefits of my way is the GUI does not make a difference.
As long as the FmtOption UDT is identical  and there are 3 routines for the progressbar,
the SLL can be called & produce the same output.

Or if you still feel than I'm a whining girl then GO AHEAD AND DELETE THE WHOLE THING!!!!!
And make sure that no one keeps a copy of it.



Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1037
  • User-Rate: +30/-4
    • it-berater
Re: Code-Formatter PB 10
« Reply #256 on: March 20, 2012, 11:12:35 AM »
Hallo Paul, how do you feel emotionally today?
I hope fine.
Here the sun is shinig, and the fact that you posted the source code shows me, that after all,
you have accepted the rules in the board like anybody else.

Ok, your source code is now the new version.

If i understand you right, somebody could take your "formatter SLL" and - for example - add it to his PB Editor,
or to Jose's Editor (where the Source code is public).

Sounds interesting to me.
« Last Edit: March 20, 2012, 11:17:20 AM by Theo Gottwald »

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Code-Formatter PB 10
« Reply #257 on: March 21, 2012, 12:57:15 PM »
Still roughly the same.

It seems that some people are allowed to call others defaming names.

So how soon are you going to clean up the messages?

Offline Jon Eskdale

  • Newbie
  • *
  • Posts: 35
  • User-Rate: +2/-0
Re: Code-Formatter PB 10
« Reply #258 on: March 24, 2012, 11:37:34 AM »
Hi Paul,

Many Thanks for all your work on this  - Very much appreciated

I have found one thing that doesn't quite work this is the
PRINT #3, JOIN$(s(), """,""") this gets converted to PRINT #3, JOIN$(s(), "" "," "")
which no longer compiles

Taken from the JOIN$ help
"If the delimiter expression is the 3-byte value of "," (which may be expressed in your source code as the string literal ""","""), a leading and trailing double-quote is added to each string section."

Thanks
Jon

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Code-Formatter PB 10
« Reply #259 on: March 24, 2012, 03:11:42 PM »
Jon,

It's nice to hear that someone likes the program.

Easy fix. And for the record, the original program had the same problem.
Now allows multi-quoted string as long as there are an even number of them.

Updated in post #255. Only the DoFormat.bas file was updated.


Offline Jon Eskdale

  • Newbie
  • *
  • Posts: 35
  • User-Rate: +2/-0
Re: Code-Formatter PB 10
« Reply #260 on: March 24, 2012, 08:05:14 PM »
Hi Paul,

That Fixed it.  Thanks for the very quick fix.
 :)

Appreciated

Jon

Offline Peter Weis

  • Sr. Member
  • ****
  • Posts: 326
  • User-Rate: +15/-4
Re: Code-Formatter PB 10
« Reply #261 on: June 10, 2012, 04:48:43 PM »
Hi Paul,

what about code formatter? Hear nothing more of it. Is the project dead?

regards Peter

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1037
  • User-Rate: +30/-4
    • it-berater
Re: Code-Formatter PB 10
« Reply #262 on: June 10, 2012, 07:06:43 PM »
Its not dead as long as the forum lives.
We can continue with it, if you want, when the actual project is in a good state.
As far as i know the final version of codeformatter was not yet completely usable.
As long as its not guaranteed, that it doesn't destroy peoples code, many will not use it.

Offline Jon Eskdale

  • Newbie
  • *
  • Posts: 35
  • User-Rate: +2/-0
Re: Code-Formatter PB 10
« Reply #263 on: June 11, 2012, 06:30:09 PM »
It is certainly in a usable state - I use it regularly without any problems.

If there was to be an issue then you can always revert to the backup

Can I say thank you to those that have created this excellent tool

Jon

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Code-Formatter PB 10
« Reply #264 on: June 16, 2012, 10:15:01 PM »
Theo,

Where do you get these ideas?

As far as I know, there has only been 1 problem with the code I posted and it was a very
minor problem ( nothing to corrupt anything ). The problem was in the original code ( not
in any part that I changed ).


Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1037
  • User-Rate: +30/-4
    • it-berater
Re: Code-Formatter PB 10
« Reply #265 on: June 17, 2012, 05:59:25 AM »
My code is very complex, Paul.
Much above average.
Thats because i heavily use MACROS.

For example sometimes i have used a MACRO like:

MACRO ENDS = END SELECT
MACRO ENDF = END FUNCTION

just as example. Maybe because of such constructs, Code formatters are unable to handle my source code?
In my tests, the code formatter could not handle the things properly, while it was not the last version i have tested.

If you or Peter have a version and you state "Thats the final and gug-free version", then i'll make a posting under "Third Party" and tell people that we have a Code-Formatter for PB 10.

However, it should be able to format any Sourcecode (other then mine).
And the GUI should also be complete. Last version i saw, the GUI was incomplete.

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Code-Formatter PB 10
« Reply #266 on: June 18, 2012, 10:46:31 PM »
Theo,

You were the one resorting to "name calling" to force me to post what I had.
Considering that Peter's last version was not working nor finished and he had
quit for a few months.

As far as I knew, everything was complete & worked. Including the GUI.
If someone has made changes since then that's not really my problem.

Surely anyone who uses a program to "reformat" the source would have enough
sense not to use it on the ONLY copy of their source code.

How's come it has taken you so long to voice any concern?



Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1037
  • User-Rate: +30/-4
    • it-berater
Re: Code-Formatter PB 10
« Reply #267 on: June 18, 2012, 10:52:03 PM »
Paul, your version is the last version.
If it works really fine and has no bugs, tell me then i'll give it  a try and make it the final.

Are you really READY with it?

If you say "yes", i will test it and see if there are bug.
My sourcecode is the ultimate killing code for all formatting tools.  ;D

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Code-Formatter PB 10
« Reply #268 on: June 19, 2012, 12:56:20 AM »
Got an almighty high opinion of your code, don't you? Or is it just convuluted?

It's been 3 months and obviously you never bothered to test anything of mine.  ???


Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1037
  • User-Rate: +30/-4
    • it-berater
Re: Code-Formatter PB 10
« Reply #269 on: June 19, 2012, 07:08:21 AM »
Are we discussing my opinion here?
Lets stay with discussion about coding, Paul.
I hope you have the same high opinion about your own code, because then it wilöl be really bug free when I test it.
Would you say that it is?