[No bug] GetURLPart() / SetURLPart()

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

Little John
Addict
Addict
Posts: 4519
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

[No bug] GetURLPart() / SetURLPart()

Post by Little John »

see Reference Manual:
https://www.purebasic.com/documentation ... lpart.html
https://www.purebasic.com/documentation ... lpart.html

Parameter is a numerical value, not a string.
So writing "Parameter$" in the documentation is inconsistent and irritating.
Last edited by Little John on Sat Oct 09, 2021 9:20 am, edited 1 time in total.
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: [PB 5.73] GetURLPart() / SetURLPart()

Post by Marc56us »

Little John wrote: Sat Oct 09, 2021 7:43 am see Reference Manual:
https://www.purebasic.com/documentation ... lpart.html
https://www.purebasic.com/documentation ... lpart.html

Parameter is a numerical value, not a string.
So writing "Parameter$" in the documentation is inconsistent and irritating.
Parameter is a string

Code: Select all

Debug #PB_URL_Protocol  ;  /PC/
Debug #PB_URL_Site      ;  /WS/
Debug #PB_URL_Port      ;  /PO/
:wink:
Little John
Addict
Addict
Posts: 4519
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: [PB 5.73] GetURLPart() / SetURLPart()

Post by Little John »

Marc56us wrote: Sat Oct 09, 2021 8:57 am Parameter is a string
Ooops. I didn't check that, sorry! :oops:
Thanks for the correction.

I didn't expect that, obviously. It would be better to rename those constants, in order to make it obvious that they are strings:
#PB_URL_Protocol$
#PB_URL_Site$
#PB_URL_Port$
etc.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2050
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: [PB 5.73] GetURLPart() / SetURLPart()

Post by Andre »

Little John wrote: Sat Oct 09, 2021 9:19 am I didn't expect that, obviously. It would be better to rename those constants, in order to make it obvious that they are strings:
#PB_URL_Protocol$
#PB_URL_Site$
#PB_URL_Port$
etc.
Maybe ;-)

But that would be up to Fred (changing the PB constants with '$' suffix), before there will be a change in the docs.
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply