Is there is simple way in QUIZ to find the position of the la
st e mbedded space in a character string?
Rohde Dirk (Van)
Dirk.Rohde@vpgroup.com
Fri, 16 Nov 2001 12:38:14 -0800
If you have the "reverse" function available in that version of PowerHouse,
the following would do it:
define t_INPUT char*20 = "ABC D E"
define t_LAST_SPACE_POS integer*2 = &
size(truncate(t_INPUT)) - index(reverse(truncate(t_INPUT)), " ") + 1
Dirk Rohde
VantagePoint Group
-----Original Message-----
From: George_DeWolf@midhosp.org [mailto:George_DeWolf@midhosp.org]
Sent: November 16, 2001 11:53 AM
To: powerh-l@lists.swau.edu
Subject: Is there is simple way in QUIZ to find the position of the last
e mbedded space in a character string?
For example, if I have the following string where [sp] indicates a space
"ABC[sp]D[sp][sp]E"
I would like a value of 7 to be returned. I'm using version 8.19.C5 of Quiz
on the HP3000.
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.