HP3000-L Archives

September 2002, Week 5

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:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Mon, 30 Sep 2002 15:02:06 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
setvar str2 !str1 - 1
setvar str3 "!str2"

The first setvar does the arithmetic (because the variable is dereferenced
with the exclamation point, it can be treated as a numeric).  The second
setvar converts the numeric result into a string.

-----Original Message-----
From: Arthur Frank [mailto:[log in to unmask]]
Sent: Monday, September 30, 2002 2:54 PM
To: [log in to unmask]
Subject: MPE/iX script question


Hello,

Okay, I'd swear this is easy.  I have a CI variable that is a numeric string
(like "2000") and I would like to set another CI variable to be a numeric
string that is one less ("1999").  How can I perform math on the first
variable?  Is there a simple way (that I'm just not remembering) to convert
a string variable to a number, then back again?

TIA,

Art Frank
Manager of Information Systems
OHSU Foundation
[log in to unmask]
(503) 220-8320

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2