PureBasic Docs - Errors & needed improvements to the man
Moderator: Documentation Editors
- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: PureBasic Docs - Errors & needed improvements to the man
Descriptions of InitializeStructure() and CopyStructure() miss in the help for PB 4.50. Using the shortcut for help leads to Compiler Functions, but they are not here.
Edit
Same problem as rudz had with CopyList() and FreeList() although they can be found manually.
Also, I think the link to the Palette library should be removed as this library (and its functions) does not exist anymore - at least the example Palette.pb does not function.
Edit
Same problem as rudz had with CopyList() and FreeList() although they can be found manually.
Also, I think the link to the Palette library should be removed as this library (and its functions) does not exist anymore - at least the example Palette.pb does not function.
Re: PureBasic Docs - Errors & needed improvements to the man
pb450b1 - english help file - some "Useful Internet Links" are not useful anymore
"The PureBasic Visual Designer Website (maintained by Berikco)" : my comodo seems to block that site for some reason (saying something about parked site or to much advertisement or whatever)
"PBDev - PureBasic Developer" (dead link)
"Robsite - PureBasic Tutorials" (dead link. "http://robsite.net/" works though, but seems not too much PB-related anymore (it was a great site once))
"AllAPI.net - Another source for using API-functions" (domain seems to be grabbed)
"Lethal Judgement + Lethal Judgement 2" (...)
"Andreas' PureBasic Site (german)" (grabbed domain that makes my security suite popping up quite a lot)
"The PureBasic Visual Designer Website (maintained by Berikco)" : my comodo seems to block that site for some reason (saying something about parked site or to much advertisement or whatever)
"PBDev - PureBasic Developer" (dead link)
"Robsite - PureBasic Tutorials" (dead link. "http://robsite.net/" works though, but seems not too much PB-related anymore (it was a great site once))
"AllAPI.net - Another source for using API-functions" (domain seems to be grabbed)
"Lethal Judgement + Lethal Judgement 2" (...)
"Andreas' PureBasic Site (german)" (grabbed domain that makes my security suite popping up quite a lot)
Re: PureBasic Docs - Errors & needed improvements to the man
typo in a link tag: Using the Debugger - Data Breakpoints:
Most functions of the @libryrylink"Math" "Math", Memory and String libraries are also available.
Re: PureBasic Docs - Errors & needed improvements to the man
PureBasic v.4.50b1 - English help file
Structures exemples :
- Typo error on "AddAlement()"
Structures exemples :
- Typo error on "AddAlement()"
-
- Addict
- Posts: 1233
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: PureBasic Docs - Errors & needed improvements to the man
Statusbar hint for CopyStructure is the one for ClearStructure.
And I've always wondered... why is ClearStructure in the Compiler Functions section of the help? Shouldn't it be in the Structure section?
And I've always wondered... why is ClearStructure in the Compiler Functions section of the help? Shouldn't it be in the Structure section?
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: PureBasic Docs - Errors & needed improvements to the man
The PB v4.50 beta documentation for CosH() includes this statement:
It should read:The inverse function of Cos() is ACosH().
A similar typo is present in the documentation for SinH().The inverse function of CosH() is ACosH().
- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: PureBasic Docs - Errors & needed improvements to the man
Though InitializeStructure() is now found in the manual for Beta 2, CopyStructure() still misses. However, ClearStructure() is mentioned two times.
Re: PureBasic Docs - Errors & needed improvements to the man
The Movie commands needed to be updated to reflect the recent changes:
MovieInfo()
Supported values for now:
0: return the number of frames per second.
MovieSeek()
Result = MovieSeek(#Movie, Position)
Description
Change the #Movie position to the given Position.
MovieStatus()
Get the status of the #Movie.
'Result' can be one of the following values:
-1: Movie is paused.
0: Movie is stopped
> 0: Movie is playing. The returned value is the current position of the Movie in in a 10th of a million second.
MovieInfo()
Supported values for now:
0: return the number of frames per second.
MovieSeek()
Result = MovieSeek(#Movie, Position)
Description
Change the #Movie position to the given Position.
MovieStatus()
Get the status of the #Movie.
'Result' can be one of the following values:
-1: Movie is paused.
0: Movie is stopped
> 0: Movie is playing. The returned value is the current position of the Movie in in a 10th of a million second.
Re: PureBasic Docs - Errors & needed improvements to the man
http://www.purebasic.com/documentation/ ... coder.html
Additional 7 bytes for trailing '=' characters and string terminator (#Null) should be mentioned.
http://www.purebasic.com/documentation/ ... coder.html
...Also it would be great to note that Base64 only works with ASCII strings.
Additional 7 bytes for trailing '=' characters and string terminator (#Null) should be mentioned.
http://www.purebasic.com/documentation/ ... coder.html
Fail, it should be 25% smaller.It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.
...Also it would be great to note that Base64 only works with ASCII strings.
Re: PureBasic Docs - Errors & needed improvements to the man
http://www.purebasic.com/documentation/ ... pokes.html
I should be mentioned that 'Text$' is passed by reference, so 'flattering' string into it's own buffer isn’t really best idea here:
...however, it could be used that way:
I should be mentioned that 'Text$' is passed by reference, so 'flattering' string into it's own buffer isn’t really best idea here:
Code: Select all
PokeS(@Text, Text, -1, #PB_Ascii) ; Fail
Code: Select all
PokeS(@Text, Text+"", -1, #PB_Ascii) ; Win
-
- Addict
- Posts: 1233
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: PureBasic Docs - Errors & needed improvements to the man
Surely 25% larger?Melissa wrote:Fail, it should be 25% smaller.
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: PureBasic Docs - Errors & needed improvements to the man
No, read harder.Surely 25% larger?
Re: PureBasic Docs - Errors & needed improvements to the man
In the german docs the description for StartDrawing() claims that the default background color is black and the default foreground color is white. In fact, the default background color is grey.
For OpenWindow() the default flag is #PB_Window_SystemMenu. What if you want to open a window without the close button?
Code: Select all
OpenWindow(0,0,0,320,200,"Test",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
StartDrawing(WindowOutput(0))
Circle(160,100,70)
StopDrawing()
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: PureBasic Docs - Errors & needed improvements to the man
think!Melissa wrote:No, read harder.Seymour Clufley wrote:Surely 25% larger?Melissa wrote:Fail, it should be 25% smaller.It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.
... how can you avoid an overflow by using a smaller buffer?
... if only a smaller buffer was needed, how can using a bigger buffer produce an overflow?
surely, it should read "like 30% larger"
oh... and have a nice day.
- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: PureBasic Docs - Errors & needed improvements to the man
You are discussing the last one of two sentences.
PB Help wrote:The output buffer can be up to 33% smaller than the input buffer, with a minimum size of 64 bytes. It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.