Subject: | |
From: | |
Reply To: | |
Date: | Mon, 30 Sep 2002 15:02:06 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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 *
|
|
|