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.
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.