Recent

Author Topic: How to validate ParamStr(1) string as a good path  (Read 6270 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 16419
  • Censorship about opinions does not belong here.
Re: How to validate ParamStr(1) string as a good path
« Reply #15 on: January 12, 2025, 08:46:05 pm »
I wrote that using jwaWindows is a trick. Take note.
It is never the long time solution.
There is nothing wrong with being blunt. At a minimum it is also honest.

n7800

  • Full Member
  • ***
  • Posts: 200
Re: How to validate ParamStr(1) string as a good path
« Reply #16 on: January 13, 2025, 03:29:56 am »
I wrote that using jwaWindows is a trick. Take note.
It is never the long time solution.

What do you mean by "trick"? Are there any problems using this unit?

Thaddy

  • Hero Member
  • *****
  • Posts: 16419
  • Censorship about opinions does not belong here.
Re: How to validate ParamStr(1) string as a good path
« Reply #17 on: January 13, 2025, 11:22:51 am »
No, no problems usually, but your executable may become larger than necessary and the compile time may be longer.
jwaWindows pulls in all jwa* units in the compile. It is basically an almost empty unit, but with a very long uses clause.
But as I wrote, if I can't find a specific windows unit fast enough, I do simply uses jwaWindows...
If you are not a professional programmer it really does not matter too much.
In that case you have my blessing to use it.

There is one point you need to realize: many declarations in jwaWindows differ from the declarations in fpc's windows units. They are actually much better imnsho:fpc's windows units are pointer oriented, whereas jwaWindows uses var for parameters that can not be nil.(i.e. pascalify them properly)
If you, like me, prefer that, you will need to find out what particular jwa unit is used and include those instead of all of them, which is what jwaWindows does.

If that makes sense to you.
« Last Edit: January 13, 2025, 11:38:50 am by Thaddy »
There is nothing wrong with being blunt. At a minimum it is also honest.

 

TinyPortal © 2005-2018