GETfilepart()?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

GETfilepart()?

Post by Trond »

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).
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: GETfilepart()?

Post by UserOfPure »

Say what :?:
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: GETfilepart()?

Post by Trond »

what
Seymour Clufley
Addict
Addict
Posts: 1266
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: GETfilepart()?

Post by Seymour Clufley »

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."
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 693
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: GETfilepart()?

Post by Kurzer »

Trond wrote:what
LOL :lol:
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!"
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: GETfilepart()?

Post by Kaeru Gaman »

"get" is shorter than "extract"...
and it's not wrong anyway.
oh... and have a nice day.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: GETfilepart()?

Post by Trond »

Kaeru Gaman wrote:"get" is shorter than "extract"...
and it's not wrong anyway.
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.

I.e.
GetGadgetText(
SetGadgetText(
, but only
ListSize() (not GetListSize())
Post Reply