PSTAT Sessionnumber


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Mike Saunders on May 13, 2008 at 09:33:15:

Could someone please check this...
According to the DOCS...

Stat$ = PStat(Partition$)
SessionNum = Asc(Sub(Stat$, 61, 1))
If (SessionNum EQ 32 ) Then _ ! Old system or a very large (>= 8192 sessions!) Comet system
SessionNum = 0
SessionNum = Asc(Sub(Stat$, 60, 1)) + (SessionNum * 256)
If (SessionNum EQ 0) Then _ ! Zero is always a background session
Goto IsBackground
SessionNum = SessionNum-1 ! Session numbers are based 0

For 61, 1 I am always getting back 0, which is fine.
For 60, 1 I get back a 1, 2, 3, 4 for my foreground partitions, which is fine.
BUT for BACKGROUND partitions I am getting back 32 for all of them.

Thanks


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]