Error 91 on HexAsc( )


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

Posted by Robert G Laurin on January 25, 2013 at 06:42:18:

Using Comet32

While processing BASE64 email message, got an 'Error 91 - Invalid System Call' on a HexAsc( ) Function (Opcode: 53). With a trace I found that WORK$ was too short (defined as 252) and had the last character cut off. It should had been '...%3f' but instead was '...%3'.

I fixed by making it 'Length Dynamic'.

But still don't understand why I had an error if there is a ',Err)' in the HEXASC function.

Code looks like this:

Do while Pos('%',Work$) > 0
Let X = Pos('%',Work$)
Car$ = ASCHEX(Sub(Work$,X+1,2),Err)
Work$ = Sub(Work$,1,X-1) + Car$ + Sub(Work$,X+3,Len(Work$))
Loop

This was tested on Comet32.467.

BTW, I had to hunt to find how to do the conditional compile for Comet32. It is '.if C32'. Not documented in the Wiki, at least not in the Constant section.

My programmer was right, saying the other day that more help was found on the Support Forum than in the WIKI.


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 ]