Re: what _SHOULD_ happen: HEXASC(CommonVariable$) under C32


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

Posted by Robert G Laurin on October 24, 2012 at 09:49:19:

In Reply to: what _SHOULD_ happen: HEXASC(CommonVariable$) under C32 posted by Bob A on October 24, 2012 at 07:58:22:

Jim is right, you should check the length aka LEN( ) before flying off the handlebars.

If you are expecting only one byte, I would use the ASC( ) function. It will return a numeric value of the ASCII character. So your space aka '@20@' would return as a 32.

Little trick, whenever you have a string (hex or not), you can use ASC to get the first character's value without doing a substring SUB( ).


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 ]