[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference ilbbak::ibi_focus

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

189.0. "CRTFORMS and SUBROUTINES" by ONFIRE::MOHR () Wed Mar 22 1989 14:48

    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.RTitleUserPersonal
Name
DateLines
189.1thoughts and questions...MEMV01::COPPERSMITHSYSTEM-W-RELFLT, reality faultTue Mar 28 1989 09:1813
    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)