GETfilepart()?
GETfilepart()?
In general if there is not both Get and Set, the Get is removed from the command name. But GetFilePart() and friends has a get even when there is no Set. I suggest to remove the Get or add Set variants (would be handy).
Re: GETfilepart()?
what
-
- Addict
- Posts: 1266
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: GETfilepart()?
Or merge all of those commands (Get Extension, Path, File Part) into one, as in GetURLPart.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Re: GETfilepart()?
LOLTrond wrote:what

PB 6.12 x64, OS: Win 11 24H2 x64, Desktopscaling: 150%, CPU: I7 12700 H, RAM: 32 GB, GPU: Intel(R) Iris(R) Xe Graphics | NVIDIA GeForce RTX 3070, User age in 2025: 57y
"Happiness is a pet." | "Never run a changing system!"
"Happiness is a pet." | "Never run a changing system!"
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: GETfilepart()?
"get" is shorter than "extract"...
and it's not wrong anyway.
and it's not wrong anyway.
oh... and have a nice day.
Re: GETfilepart()?
Fred said that in general, if there is no "set" then they remove the "get". But they didn't in this case. So when looking for this command I didn't find it in the autocomplete because I forgot the get.Kaeru Gaman wrote:"get" is shorter than "extract"...
and it's not wrong anyway.
I.e.
GetGadgetText(
SetGadgetText(
, but only
ListSize() (not GetListSize())