[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

206.0. "Trailing Blanks with & vars" by TOLKIN::HOLLOCHER (The Children, They Were Learnin') Mon Apr 24 1989 11:23

    
    I have a problem that seems simple at first, but has continued to
    cause problems.
    
    In Dialogue manager I wasnt to concatenate several '&' variables together
    to make a file name.  The problem is the trailing blanks. 
    
    For example   -SET &FILENAME = &A||&B||.TXT;
    
    The variable &A and &B were entered via a CRTFORM, so the formats
    have been set.  So, if &A and/or &B have trailing blanks, the file
    name is invalid.
    
    I have tried various combinations of functions to extract the non-blank
    string.  The problem is that the receiving & field seems to be forced
    to the same format as the sending & field, thus retaining the blanks.
    
    Thank You for any help you can provide.
T.RTitleUserPersonal
Name
DateLines
206.1||| instead of ||TOLKIN::HOLLOCHERThe Children, They Were Learnin'Mon Apr 24 1989 16:534
    
    I talked to IBI.  To get a "hard" concatenation you must use |||
    instead of || .  This is only a temporary "get-around" to the bug.
    
206.2Space after &var also worksMEMV02::VOSSTue Apr 25 1989 14:045
    You can also leave a space after the &variable and before the hard
    concatenation symbol, ||.
    
    	ex: -SET &FILENAME=&A ||&B ||'.DAT';