| Title: | FOCUS, from INFORMATION BUILDERS |
| Moderator: | ZAYIUS::BROUILLETTE |
| Created: | Thu Feb 19 1987 |
| Last Modified: | Mon May 05 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 615 |
| Total number of notes: | 1779 |
I am calling a subroutine from the Subroutine Library in
Dialog Manager.
My code looks like this:
-&TID = RJUST (4, &ID, 'A4');
^ ^ ^
| | |
length of +--+ +---- format of output field
input |
field input
field
This subroutine is supposed to take an input string of any length
and right justify it. I am passing it a input string that is
numeric, and should be 3 or 4 characters. I need this string to
be right justified. When the field comes out of the subroutine,
it has been translated into totally different characters, sometimes
even in another language, seemingly with no pattern.
I am pulling &ID from a CRTFORM. I don't seem to have a problem
with the subroutine when I assign a value to the input string
outside of CRTFORM.
Is their a problem with subroutines and CRTFORM? Any suggestions?
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 189.1 | thoughts and questions... | MEMV01::COPPERSMITH | SYSTEM-W-RELFLT, reality fault | Tue Mar 28 1989 08:18 | 13 |
1) What language?
2) CRTFORMS can be sensitive to term/UPPER or /NOUPPER.
3) Think about null characters (or worse) being returned from your
subroutine.
4) If you'd like me to peek at your subroutine, send it, together
with a self-addressed (stamped) envelope and 15 cents to cover
handling and my general well-being to:
MEMCL1::COPPERSMITH
or call
232-2246 (dial-a moan)
| |||||