[No bug] GetURLPart() / SetURLPart()

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

Moderator: Documentation Editors

Little John
Addict
Addict
Posts: 4007
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.
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
Marc56us
Addict
Addict
Posts: 1108
Joined: Sat Feb 08, 2014 3:26 pm
Location: France

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:
(English is not my native language, I use an online translator.)
Little John
Addict
Addict
Posts: 4007
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.
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
Post Reply