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.
[No bug] GetURLPart() / SetURLPart()
Moderator: Documentation Editors
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
[No bug] GetURLPart() / SetURLPart()
Last edited by Little John on Sat Oct 09, 2021 9:20 am, edited 1 time in total.
Re: [PB 5.73] GetURLPart() / SetURLPart()
Parameter is a stringLittle 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.
Code: Select all
Debug #PB_URL_Protocol ; /PC/
Debug #PB_URL_Site ; /WS/
Debug #PB_URL_Port ; /PO/
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: [PB 5.73] GetURLPart() / SetURLPart()
Ooops. I didn't check that, sorry!
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.
- Andre
- PureBasic Team
- Posts: 2071
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: [PB 5.73] GetURLPart() / SetURLPart()
MaybeLittle 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.
But that would be up to Fred (changing the PB constants with '$' suffix), before there will be a change in the docs.