Page 1 of 1

Include constants list in updates (especially new ones)

Posted: Fri Jun 04, 2004 7:15 pm
by Kale
Reading this post here:
viewtopic.php?t=10886

I've come to think its maybe a good idea to start including all the PB constants within the PB manual with each update. Looking through the residents files on CVS i've run across these:
#NUL$ = Chr(000) : #NUL = 0 ; (NULL)
#SOH$ = Chr(001) : #SOH = 1 ; (Start of Header)
#STX$ = Chr(002) : #STX = 2 ; (Start of Text)
#ETX$ = Chr(003) : #ETX = 3 ; (End of Text)
#EOT$ = Chr(004) : #EOT = 4 ; (End of Transmission)
#ENQ$ = Chr(005) : #ENQ = 5 ; (Enquiry)
#ACK$ = Chr(006) : #ACK = 6 ; (Acknowledgment)
#BEL$ = Chr(007) : #BEL = 7 ; (Bell)
#BS$ = Chr(008) : #BS = 8 ; (Backspace)
#HT$ = Chr(009) : #HT = 9 ; (Horizontal Tab)
#TAB$ = Chr(009) : #TAB = 9 ; (TAB)
#LF$ = Chr(010) : #LF = 10 ; (Line Feed)
#VT$ = Chr(011) : #VT = 11 ; (Vertical Tab)
#FF$ = Chr(012) : #FF = 12 ; (Form Feed)
#CR$ = Chr(013) : #CR = 13 ; (Carriage Return)
#SO$ = Chr(014) : #SO = 14 ; (Shift Out)
#SI$ = Chr(015) : #SI = 15 ; (Shift In)
#DLE$ = Chr(016) : #DLE = 16 ; (Data Link Escape)
#DC1$ = Chr(017) : #DC1 = 17 ; (Device Control 1) (XON)
#DC2$ = Chr(018) : #DC2 = 18 ; (Device Control 2)
#DC3$ = Chr(019) : #DC3 = 19 ; (Device Control 3) (XOFF)
#DC4$ = Chr(020) : #DC4 = 20 ; (Device Control 4)
#NAK$ = Chr(021) : #NAK = 21 ; (Negative Acknowledgement)
#SYN$ = Chr(022) : #SYN = 22 ; (Synchronous Idle)
#ETB$ = Chr(023) : #ETB = 23 ; (End of Trans. Block)
#CAN$ = Chr(024) : #CAN = 24 ; (Cancel)
#EM$ = Chr(025) : #EM = 25 ; (End of Medium)
#SUB$ = Chr(026) : #SUB = 26 ; (Substitute)
#ESC$ = Chr(027) : #ESC = 27 ; (Escape)
#FS$ = Chr(028) : #FS = 28 ; (File Separator)
#GS$ = Chr(029) : #GS = 29 ; (Group Separator)
#RS$ = Chr(030) : #RS = 30 ; (Request to Send)(Record Separator)
#US$ = Chr(031) : #US = 31 ; (Unit Separator)
#DEL$ = Chr(127) : #DEL = 127 ; (delete)
#NULL$ = Chr(000) ; (NULL)
#CRLF$ = Chr(13) + Chr(10)
#LFCR$ = Chr(10) + Chr(13)
#DOUBLEQUOTE$ = Chr(34)
#DQUOTE$ = Chr(34)
I didn't even know these where defined! I can find no mention of them in the release notes for v3.90 or in the manual. :? I knew they were a request and this one has been included and missed i think.

Posted: Fri Jun 04, 2004 7:41 pm
by Karbon
I think Freak snuck them in there around 3.81.. Agreed that those should be in the docs somewhere!

Posted: Fri Jun 04, 2004 8:09 pm
by freak
Nope, wasn't me. *points at Danilo...* :wink:

But it's true, these were added somewhere between the updates, so when
we were all working on docs and stuff, they were forgotten.
Usually, new constants come with new commands and are also mentioned
in the docs of these commands, so no big problem i think.

Timo

Posted: Sat Jun 05, 2004 2:13 am
by Kale
Nope, wasn't me. *points at Danilo...*
lol :)

Posted: Sat Jun 05, 2004 2:30 am
by Dare2
hehe. :)

Re the constants. I agree that having a list somewhere in the docs beats digging and delving.

Posted: Sun Mar 27, 2005 8:20 pm
by Kale
any news about this being done for the next doc update?

Posted: Sun Mar 27, 2005 11:22 pm
by Andre
Kale wrote:any news about this being done for the next doc update?
I will add a list with the next PB update. :)

Re: Include constants list in updates (especially new ones)

Posted: Sun Mar 27, 2005 11:54 pm
by PB
> #DOUBLEQUOTE$ = Chr(34)
> #DQUOTE$ = Chr(34)

These 2 are too long to bother using... why not change them to #DQ$ instead?

Posted: Mon Mar 28, 2005 12:00 am
by PB
> Nope, wasn't me. *points at Danilo...*

I miss Danilo. :cry: A real shame he doesn't hang around here anymore.

Posted: Mon Mar 28, 2005 1:05 am
by Kale
I miss Danilo. Crying or Very sad A real shame he doesn't hang around here anymore.
i agree :(
I will add a list with the next PB update.
Cool! :D

Posted: Mon Mar 28, 2005 3:15 am
by jack
PB wrote: I miss Danilo. :cry: A real shame he doesn't hang around here anymore.
yes I agree, Danilo is a genius, but people take it personally when he makes a sharp comment, that's why he does not frequent this forums
anymore.

Posted: Mon Mar 28, 2005 7:24 am
by PB
> people take it personally when he makes a sharp comment

Some people need to be told, though. :) If they can't handle it, too bad.
Every now and then I'll tell someone off, and too bad if they think I'm evil.