It is currently Tue Apr 07, 2020 9:35 pm

All times are UTC + 1 hour




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 224 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 15  Next
Author Message
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 01, 2010 1:04 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 21, 2008 5:02 pm
Posts: 609
Location: Aarhus, Denmark
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.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 01, 2010 9:52 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1233
Location: right here
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)


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 01, 2010 10:04 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1233
Location: right here
typo in a link tag: Using the Debugger - Data Breakpoints:
Quote:
Most functions of the @libryrylink"Math" "Math", Memory and String libraries are also available.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 01, 2010 11:19 am 
Offline
User
User

Joined: Thu May 22, 2008 10:32 pm
Posts: 65
PureBasic v.4.50b1 - English help file
Structures exemples :
- Typo error on "AddAlement()"


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 01, 2010 5:00 pm 
Offline
Addict
Addict

Joined: Wed Feb 28, 2007 9:13 am
Posts: 1039
Location: London
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?

_________________
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."


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 01, 2010 6:40 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jul 25, 2005 3:51 pm
Posts: 3649
Location: Utah, USA
The PB v4.50 beta documentation for CosH() includes this statement:
Quote:
The inverse function of Cos() is ACosH().


It should read:
Quote:
The inverse function of CosH() is ACosH().


A similar typo is present in the documentation for SinH().

_________________
Image


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Fri Apr 02, 2010 11:11 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 21, 2008 5:02 pm
Posts: 609
Location: Aarhus, Denmark
Though InitializeStructure() is now found in the manual for Beta 2, CopyStructure() still misses. However, ClearStructure() is mentioned two times.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sat Apr 03, 2010 12:56 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed May 05, 2004 4:04 pm
Posts: 634
Location: Germany
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.

[color=#0000FF]MovieStatus()[/color]

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.

_________________
Zip_It V1.1
Image


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sun Apr 04, 2010 1:39 pm 
Offline
User
User
User avatar

Joined: Tue Sep 22, 2009 3:13 pm
Posts: 71
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
Quote:
It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.

Fail, it should be 25% smaller.


...Also it would be great to note that Base64 only works with ASCII strings.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Mon Apr 05, 2010 9:12 am 
Offline
User
User
User avatar

Joined: Tue Sep 22, 2009 3:13 pm
Posts: 71
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:
Code:
PokeS(@Text, Text, -1, #PB_Ascii) ; Fail

...however, it could be used that way:
Code:
PokeS(@Text, Text+"", -1, #PB_Ascii) ; Win


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Mon Apr 05, 2010 8:51 pm 
Offline
Addict
Addict

Joined: Wed Feb 28, 2007 9:13 am
Posts: 1039
Location: London
Melissa wrote:
Fail, it should be 25% smaller.
Surely 25% larger?

_________________
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."


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Apr 06, 2010 7:15 am 
Offline
User
User
User avatar

Joined: Tue Sep 22, 2009 3:13 pm
Posts: 71
Quote:
Surely 25% larger?

No, read harder.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Wed Apr 07, 2010 6:14 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 8:45 pm
Posts: 112
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.

Code:
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


For OpenWindow() the default flag is #PB_Window_SystemMenu. What if you want to open a window without the close button?


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 08, 2010 10:35 am 
Offline
Addict
Addict
User avatar

Joined: Sun Mar 19, 2006 1:57 pm
Posts: 4828
Location: Germany
Melissa wrote:
Seymour Clufley wrote:
Melissa wrote:
Quote:
It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.

Fail, it should be 25% smaller.

Surely 25% larger?

No, read harder.

think!

... 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.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Apr 08, 2010 11:13 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 21, 2008 5:02 pm
Posts: 609
Location: Aarhus, Denmark
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 224 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 15  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye