It is currently Sat Dec 07, 2019 6:32 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, 2, 3, 4, 5 ... 15  Next
Author Message
 Post subject: Chr()
PostPosted: Tue Oct 06, 2009 5:15 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3715
Location: Berlin, Germany
Chr()

In the help of PB 4.40 Beta 3 it reads like this:
Quote:
Text$ = Chr(ASCII-Value)
Returns the character associated with the given ASCII value.

Not a single word about Unicode there ...
But Chr() can also return Unicode characters (in unicode mode, if the source file is in UTF8 format). That's much appreciated and pretty cool, but before we can use it, we'll have to know about it. :-)
So mention it in the docs, please.

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
 
 Post subject: [PB 4.40 Beta 3] NewMap
PostPosted: Thu Oct 08, 2009 4:53 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3715
Location: Berlin, Germany
NewMap

Although the help for NewMap() exists, the word "NewMap" does not appear in the help index. Also in the command index of Map(), the word "NewMap" is missing.

Another mistake:
In the beginning of the second paragraph of the English help for NewMap it reads
Quote:
When using a new key for an affection, a new element is automatically added to the map.
"affection" doesn't make sense in this context. In the German help, it correctly reads "Zuweisung" here. This is "assignment" in English.

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Oct 13, 2009 7:20 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 21, 2008 5:02 pm
Posts: 609
Location: Aarhus, Denmark
The link to TextureOutput() in StartDrawing() should be removed.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Oct 13, 2009 7:26 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1704
Location: Germany (Saxony, Deutscheinsiedel)
@Little John:

The spelling error in english 'NewMap' help was fixed, as well a false link to the 'LinkedList' library in the introduction of the 'Map' library. There is also a link to the 'NewMap' keyword already there.... and it's not listed in the command-list of this library just because it's a keyword and not a command of this library.

The other issues I've set on the 'ToDo' list - see first post...

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Oct 13, 2009 8:05 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1704
Location: Germany (Saxony, Deutscheinsiedel)
Arctic Fox wrote:
The link to TextureOutput() in StartDrawing() should be removed.

Done.

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Oct 13, 2009 8:28 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3715
Location: Berlin, Germany
Thank you, Andre!

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sun Oct 18, 2009 2:41 am 
Offline
Addict
Addict

Joined: Wed Feb 28, 2007 9:13 am
Posts: 1038
Location: London
I'm using beta5 and the CHM has no documentation of the new 2D Drawing commands, drawing modes, etc.

_________________
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 Oct 20, 2009 2:46 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 2:15 pm
Posts: 841
Location: Cuernavaca, Mexico
It would be helpful if the manual explained the For:Next command a little better..

e.g. Stepping and negative stepping for example.
Code:
k = 10
For k = 10 To 1 Step -1
    Debug k
Next


--blueb

_________________
- It was too lonely at the top.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Oct 20, 2009 8:23 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1704
Location: Germany (Saxony, Deutscheinsiedel)
blueb wrote:
It would be helpful if the manual explained the For:Next command a little better..

e.g. Stepping and negative stepping for example.
Code:
k = 10
For k = 10 To 1 Step -1
    Debug k
Next



Done :D


Seymour Clufley wrote:
I'm using beta5 and the CHM has no documentation of the new 2D Drawing commands, drawing modes, etc.

Set on ToDo list for Fred/freak.

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sat Oct 24, 2009 11:26 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3715
Location: Berlin, Germany
FillArea()

Currently the Reference Manual writes:
Quote:
If the 'BorderColor' parameter is set to -1, then the area defined by the color found at the (x,y) coordinates will be filled.
IMHO this hardly describes the effect of -1 in this context.

I think it should read something like this:
Quote:
If the 'BorderColor' parameter is set to -1, then any color that is different from the color at point (x,y) will be treated as 'BorderColor'.

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Mon Oct 26, 2009 10:16 am 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4445
Location: Germany
Hi,

DatabaseUpdate() needs an update!

At the weekend I was fighting for ours with SQLite and the example in the (german) help.

Code:
  ; Zuerst stellen wir eine Verbindung zu der 'employee' (Angestellten) Tabelle her
  ;
  If DatabaseQuery(#Datenbank, "SELECT * FROM employee") ; Ermittelt alle Einträge in der 'employee' Tabelle
 
    While NextDatabaseRow(#Datenbank)   ; alle Einträge durchlaufen
     
      ; Aktualisieren des 'checked' Felds für jeden Eintrag, vorausgesetzt
      ; das 'id' Feld ist das erste in der 'employee' Tabelle
      ;
      DatabaseUpdate(#Datenbank, "UPDATE employee SET checked=1 WHERE id="+GetDatabaseString(#Datenbank, 0))
    Wend

    FinishDatabaseQuery(#Datenbank)
  EndIf


This example tells you, that it is possible to update each entry in the database inside the loop.
But it is not working.

There is already a posting about that, but nothing is changed.
viewtopic.php?f=13&t=32876&p=248148&hilit=sqlite+update#p248148

So please change the helpfile, or if it is a bug with SQLite, write it inside this help.

Best regards,

Bernd


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Oct 29, 2009 9:53 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:06 pm
Posts: 265
Location: Gummersbach - Germany
Hi, it would be helpful to have a better explanation of the different screen output subsystems and which commands are supported by each subsystem. Also a compiler warning would be nice, if you try to use an unsupported command.

_________________
The Human Code Machine / Masters' Design Group


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Thu Oct 29, 2009 10:31 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3715
Location: Berlin, Germany
As I posted in the "Coding questions" section a few days ago, some example code in the current help regarding 2D drawing ( see e.g. Circle() ) does not work at all on Ubuntu.

Srod has confirmed my point of view and nobody objected, so I really think the example code is wrong, at least as far as Linux is concerned.
On Windows, the example code in the help does work, but srod wrote that in his opinion the modification that I posted (suggested by #Null on the German forum) is the safer one to use on all platforms.

Since it's important to have working example code, please change it for the 4.40 final release.

TIA, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 03, 2009 4:44 am 
Offline
Addict
Addict

Joined: Wed Feb 28, 2007 9:13 am
Posts: 1038
Location: London
Little John wrote:
If the 'BorderColor' parameter is set to -1, then any color that is different from the color at point (x,y) will be treated as 'BorderColor'.
I strongly agree with this suggestion.

_________________
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 Nov 03, 2009 6:26 am 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 1341
would be nice if you could re-arrange the value types table and keep .c at one place.

currently:
Quote:
Byte
Ascii
Character
Word
Unicode
Character
Long
Integer
Integer
Float
Quad
Double
String
Fixed String

better:
Quote:
Byte
Ascii
Word
Unicode
Character
Character
Long
Quad
Integer
Integer
Float
Double
String
Fixed String

btw, why isnt there a default (.i like) type for floats? .f on 32bit and .d on 64bit. isnt .d 'faster' on 64bit?

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


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, 2, 3, 4, 5 ... 15  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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