HP3000-L Archives

August 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Larry Barnes <[log in to unmask]>
Reply To:
Larry Barnes <[log in to unmask]>
Date:
Tue, 1 Aug 2000 13:39:06 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
Dave Knispel wrote:

> To the list,
>
> Why does this happen?  Why doesn't the variable x increment to 4?
>
> MPEiX:PRINT TEST
>   parm x
>   setvar x !x + 1
>   echo !x
>   setvar x !x + 1
>   echo !x
>
> MPEiX:test 2
> 2
> 2
>
> MPEiX:showvar x
> X = 3
>
> David Knispel
> [log in to unmask]
> Phone: 513-248-5029
> Fax: 513-248-2672

You are using 2 as the beginning integer.
So:
x = 2+1
echo = 3

step 2:
x=3+1
echo = 4

2 + 1 = 3


--
Larry Barnes
Director of I.T.
Mitek Corp.
602-438-4545 X 1366
Phoenix, AZ 85040

Check Us Out !
http://www.mitekcorp.com
http://www.atlassound.com
http://www.coustic.com
http://www.mtxaudio.com
http://www.xtant.com
http://www.dcmspeakers.com

ATOM RSS1 RSS2