Jim Lyons wrote:

On May 27, 2006, at 8:33 AM, Alex Tweedly wrote:

I decided to have a go at using binaryDecode (thanks to Jim Ault for suggesting this), because it would be a single statement and potentially faster (the real case has more variables and decoding to do)
 get binaryDecode("a4xa4xa12", lV, tVal1, tVal2, tVal3)

i.e. put 4 chars into the first variable, skip one char, 4 chars into next var, skip, 12 chars into next var.


Alex,
Sorry about the crash ;^) but shouldn't that be "a4x1a4x1a12" ? (Note the ones after the x's)

Nope. The docs say

Parameters:
The formatsList consists of one or more dataTypes, each followed optionally by an amount. A dataType is one of the following single letters:

Note - "...followed *optionally* by an amount..."

But thanks for the sympathy :-)

--
Alex Tweedly       http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.2/349 - Release Date: 26/05/2006

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to