Jooel,

In your original post is this line correct?

quote:
if 0+$[4] $k=5 $m=$m/$[4] endif

Couldn't we have a P1 format that starts with byte value of 1 or am I misunderstanding the function of this code? I think you might need something like this:

code:
if $[1]<>'P1' $k=5 $m=$m/$[4] endif

I do like your code:
quote:
$3=2*($[1]=P3) { or $z = $[1]=P3}
Cute [Cool]

[ 19. October 2003, 21:39: Message edited by: Jack Lothian ]
_________________________
Jack