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: 1264
- 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.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"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())