Re: DOS COPY ("@FFFA@")


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

Posted by Bob A on August 17, 2012 at 05:24:20:

In Reply to: Re: DOS COPY ("@FFFA@") posted by Barbara Brazil on August 16, 2012 at 14:38:58:

Two quick questions...

(1) isn't the following 4 lines of code really a replacement for FuncError = IHexDec(AX$) & FileError = IHexDec(DX$)

AX$ = SUB(AX$,2,1) + SUB(AX$,1,1) ! Flip the bytes around
DX$ = SUB(DX$,2,1) + SUB(DX$,1,1) ! Flip the bytes around
FuncError = HexDec(AX$) ! Function error code (decimal)
FileError = HexDec(DX$) ! File error code (decimal)

! For unexpected values, convert to 2's complement signed integer
If (FuncError > 32767) FuncError = FuncError-65536
If (FileError > 32767) FileError = FileError-65536

(2) I no longer have to append a null ("@00@") at the end of the file names... just use simple COMET strings as file names

Thanx

Bob "A"


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 ]