Simple??? Want "INSERT" function to return blank space after a field, how?

All,
Am I just having a brain fart? I have a situation where I have a field that needs to return just one space, or a value that has a space before and after it.
Example:
In the text ==> I am<field>going to the office. <-- notice no space between am, <field> and going
I want it to say if FALSE, then "I am *not* going to the office."
If true, then "I am going to the office."
If true, I'm simply RETURN(""); <-- This returns a blank space
If FALSE, I have tried:
ret="not"
RETURN(" " & ret & " ");
This returns "I am notgoing to the office". <-- Notice no blank space after "not"?
I've tried
ret="not";
ret2=(" " & ret);
RETURN(Insert(ret2, 3, " "));
Still the same result. What's strange is, if I do a RETURN(Insert(ret2, *2*, " "));, then it returns "I am no tgoing to the office" <-- Notice the space between the "o" and the "t"?
Ideas?

Trailing spaces are often removed from data. In your case, the easiest thing to do will be to use what is called the "hard space" character instead of a "real" space. This is key code ALT+0160. For all intent and purposes, it looks like a space and will print as a space, but since it is not technically the space (0032) character, it will not be trimmed from your projects. Just open the quotes, turn off the NUMLOCK and hold down the ALT key and type 0160 and then release the ALT key. This will add the hard space into your string. Then if you are like me, you will have to remember to turn the NUMLOCK back on.
" not "
I'm not sure how this will post into this message, but the example above is using hard space characters.
Edited by: user9976634 on Dec 5, 2012 12:52 PM

Similar Messages

  • How do I get rid of the blank space after one paragraph and before the next paragraph startsin Pages '09?  I understand that I should not have a page break mid paragraph but that is what I want.

    How do I get rid of the blank space after one paragraph and before the next paragraph startsin Pages '09?  I understand that I should not have a page break mid paragraph but that is what I want.

    Hi stephanie,
    These are unrelated questions/statements.
    Space before and space after a paragraph are controled in the Text Inspector, as you've found out.
    Pages will create a page break whenever there is no room for another line on the page. That break can come anywhere in a paragraph.
    You may be thinking of Widow and Orphan prevention, and the other Pagination controls, found under the More button in the Text Inspector. (If that's what you found, then thanks for the refresher! I hadn't been to that pane for awhile, and had forgotten the variety of pagination controls available.
    Regards,
    Barry

  • Want to display a space after last field in the output txt file

    hi
    I want to display a space after last field in the output txt file which is generaed by my program on utility server the last field lengyt we have defined is four and in database it is of three characters and requirement is to disppaly the last fourth field as space in the output file w hich is not shown as the txt file automatically gets closed at the third place as it is the last field in the record and ind atabase records are of therss char only but user wants to display this fourth position in the notepad output file as space ( which is last field in the output file)
    eg
    name house  street country
    record output coming in file
    ram   h3      street3  thn      now this thn which is last field the notepad get closed at thn only
    i want to display one space in last field for the whole of output file
    ie ram      h3   street3  thn(space)
        sham   h4  street4   sgp(space)  so on......
    we need to show this space in the output file as blank
    regards
    Arora

    hi Atish
    i am using
    loop at gt_sagadr_outtab into wa_sagadr_outtab
    move wa_sagadr_outtab-country to wa_sagadr_text+223(226).
    endloop
    in this last field ie country i need to display the last 226 as blank as only country key is two char in database so the last space is not shown
    i am not unsing the fM as tolb by  you
    and afterwards
    i am usning
    Concatenate 'Sagadr_' sy-datum sy-uzeit '.dat' into gv_filename_sagadr.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        LOGICAL_FILENAME              = gc_lfile
        OPERATING_SYSTEM              = SY-OPSYS
        PARAMETER_1                   = gc_param1
        PARAMETER_2                   = gc_send
        PARAMETER_3                   = gv_filename_sagadr
      USE_PRESENTATION_SERVER       = ' '
      WITH_FILE_EXTENSION           = ' '
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
      IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
        FILE_NAME                     =  gv_filepath_sagadr
    EXCEPTIONS
      FILE_NOT_FOUND                = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and lastly
    open dataset gv_filepath_sagadr for output in text mode encoding default.
        if sy-subrc eq 0.
         loop at gt_sagadr_text into wa_sagadr_text.
         transfer wa_sagadr_text to gv_filepath_sagadr.
         endloop.
        endif.
       close dataset gv_filepath_sagadr.
        if sy-subrc = 0.
        message S002 with gv_filepath_sagadr. "Files & created on Application server
        endif.
    SO NOT SURE WHERE TO USE THE CODE AND HOW

  • Getting blank space after paragraph in RTF template

    Hi there,
    Thanks so much for all your help for your help.
    I am running into one issue in RTF template, wanted to share with you to get any input on this. I have paragraph and Idid put in table at the top and there is xml tag that gives names after that paragraph. but I get blank spaces after paragraph and it shows names from that xml tag.
    I tried to remove spaces by deleting between pargraph and xml tag<name> , still i get blank page between paragraph text and names.
    Can anyone help me or point me to get it resolved that would be greatly appreciated.

    Thanks Varma for your prompt response and your time on this. I am still trying to get any other options to get this done as that is the requirement and with that blank page looks not fully satisfied for users and am trying any other ways to do implement this..
    That's the reason I thought of putting this post again to get more inputs that may have.
    Can anyone put some light onthis.
    Thanks a lot..
    sk

  • Including blank spaces to the field

    Hi,
    I have a field in the internal table with length 10.
    If this field is blank, i want to assign 10 spaces in that field.
    how to do tht.
    plz help.

    Hi,
    Hope below code will be useful for u.
    data: v_dt type d value '        '.
    i given 8 spaces here becoz length of d is 8. likewise u can use ur Internal table
    write: 'date',v_dt.
    Reward if helpful....
    Regards,
    vijay

  • Is there a way to have a blank space after max scroll?

    Hi,
    I am a programmer and when I am typing, I don't like to do it when I am at the bottom of the file.
    Is there a way to not have to looking down when typing at the end of the file?
    Maybe a configuration or an app that can help?
    When I was a windows user, editplus would add some blank space after the last line, so you can still look at the center of the display even when typing at the bottom line.
    I use Coda 2 btw.
    thanks!

    I am sure that you can do all the creating you want with DVDSP, but it is more complicated than iDVD, and a bit more expensive, too.
    Great advice Beverly ... (As usual).
    That was going to be my next recommendation as well even though the learning curve is much higher than that of iDvd. It does give much more latitude in terms of creating a theme from scratch. However, here are some of the stock themes in DVDSP that can also be adjusted pretty to bare bones minimum; much the same way you would within iDvd.
    Click Here

  • How can I remove blank space after month value while selecting to_char(sysdate)

    select to_char(sysdate,'dd-month-yyyy') from dual;
    when I give this query, I'm getting a blank space after the month value. How can I trim that?

    Or else try this one
    select to_char(sysdate,'dd-fmmonth-yyyy') from dual;
    Best of luck.

  • Removing extra blank space after Header in IE

    This is my first webpage in Dreamweaver (actually it's my
    first webpage!) I'm still super new and can use A LOT of help.
    First off, I'm using the two column elastic left sidebar
    header/footer template from DW. When I preview my page in IE I get
    an extra gap between the header and the sidebar/maincontent portion
    of the screen. I've tried zeroing all of my margins and padding and
    that seems to have no effect. I read some of the other posts and
    found some code that sounds like it should fix the problem, so is
    this all I have to add to my code?
    Attach Code:
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs to avoid several bugs */
    </style>
    <![endif]-->
    Also, I am trying to add an image placeholder to my header,
    but everytime I try, the placeholder becomes part of the <h1>
    tag. I don't want it to be part of the <h1> tag (I don't
    think). I would like to be able to just place it in the header so
    that I can float it left and have it not effect my <h1> tag
    at all. Is there a fix for that? I would assume that there would
    be, but seeing as I'm still at Newb status, I have no idea what
    that code would be.
    Thank you!

    Ewww - made the page in Word, did you?
    span.style81 {mso-style-name:style81;
    mso-ansi-font-size:17.5pt;
    mso-bidi-font-size:17.5pt;
    font-family:Arial;
    mso-ascii-font-family:Arial;
    mso-hansi-font-family:Arial;
    mso-bidi-font-family:Arial;
    color:black;
    font-weight:bold;}
    Try changing this -
    <table width="795" border="0" bordercolor="#000000"
    bgcolor="#000000"
    style="border-color: #333333;">
    to this -
    <table width="795" border="0" bgcolor="#000000"
    style="border-color:
    #333333;" cellspacing="0" cellpadding="0">
    Be aware that without specifying a border-style, and
    border-width, your
    border-color style will have no effect.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "moon64" <[email protected]> wrote in
    message
    news:en1idh$kca$[email protected]..
    >I am getting a small space on some of my pages in-between
    the header and
    >the
    > first table. The problem only shows itself in IE, not
    through Firefox. I
    > have
    > encountered the same problem on some other things I have
    been working on.
    > Here
    > is a portion of the file if anyone could kindly see what
    is casuing the
    > problem. Thanks in advance. This board must have
    answered 100 questions
    > for me
    > so far.
    >
    >
    http://www.1candlemarketing.com/fund/headertest.html
    >

  • Blank space in Amount field

    Hello All,
    I have one clarification.I have one field called amount.Its value is taken as 0.00 from the table. I have to make it as blank.I have made it as blank to that field in display pattern properties by setting as * in adobe designer. This is suitable for print form. In case of interactive form how can this be done to achieve the functionality.If the value is given from the other side to the amount value its not taking since in display pattern it has been set  as *.Can anybody help me out to solve this issue. 
    This is very urgent.I will reward you with points.
    Thanks,
    Swapna

    Swapna,
    Check my reply [here|Adobe Forms --Amount field Problem;.
    Chintan

  • Leading blank space in text field

    Hi guys,
    i have defined include type in designer(adobe) to display text from SO item. which is working very much fine.
    If the SO item text is maintained with leading tabs, adobe is able to show the text exactly.
    But if the SO item text is maintained with leading spaces, adobe is defaulting value to left by deleting the leading spaces.
    I need to show the value in mirror image. Hence i need to retain the leading spaces in adobe too.
    Appreciate valuable suggestions

    HI,
    Yes, you are right. I was checking weather we could handle this without scripting.
    Moreover, can anyone check whatz wrong with this source. I am trying to pad tab infront of the field value.
    But its not happeing.
    data.BodyPage_Details.sf_Tsk_Tab_Loop.sf_Seq_Tab_Loop.sf_Opr_Tab_Loop.sf_PRT.sf_PRTData.sf_prt_header_text.PRT_LONG_TEXT::initialize - (JavaScript, client
    if ( (sf_PRT.sf_PRTData.sf_prt_header_text.PRT_LONG_TEXT.rawValue)  != null   )
        this.rawValue =  "\t" + this.sf_PRT.sf_PRTData.sf_prt_header_text.PRT_LONG_TEXT.rawValue;
        this.presence =  "visible" ;
    else
         this.presence     =  "hidden";

  • My HD-EG5 hard drive only shows me 99 mb of blank space after installing the App lock feature. ??

    Upon installing the HD-EG5 500gig Hard Drive & installing the app lock feature, I was prompted to unplug & replug the drive in. When I did all that showed up was a 99 mb section called App unlock. After checking the drive at the most basic level, I can see the other 460+ gig using external software but it cannot be seen when you plug the drive into a USB port.

    Travis,
    I suggest that you format the hard drive in FAT32 format to resolve the issue.
    If my post answers your question, please mark it as "Accepted Solution".

  • I want the tabs stay on my window after opening again, How can I do that pleas?

    I open the Firefox and make some tabs in there then I close the window. Another time when I open the Firefox I want display all of tabs in the same window.

    Use:
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • How to insert blank spaces in XML tag?

    Hi Experts,
    I have a variable of type char and lenght 10 with value "ABCDE".  When I write this value in xml tag <TEXT> using simple transformation it ignores the trailing blank spaces and the result xml string looks as <TEXT>ABCDE</TEXT>.
    I want the xml tag with trailing blank spaces i.e. it should be like <TEXT>ABCDE     </TEXT>. And suppose if the variable does not contain any value, the xml tag should contain 10 blank spaces like <TEXT>          </TEXT>.
    I have tried using the solution given in this link
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/f52846257a0485e10000000a155369/frameset.htm
    but unfortunately it doesn't work.
    Please guide me to achieve this.
    Regards,
    Ravi

    ABAP prog:
    DATA: text(10)    TYPE c VALUE 'ABCDE',
          xml_xstring TYPE string.
    CALL TRANSFORMATION z_test SOURCE root = text
                            RESULT XML xml_xstring.
    WRITE xml_xstring.
    Transformation:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="ROOT"/>
    <tt:template>
          <Text tt:value-ref="ROOT"/>
    </tt:template>
    </tt:transform>
    Result in xml string:
    <?xml version="1.0" encoding="utf-16"?>#<Text>ABCDE</Text>
    Also tried transformation using:
    <tt:template>
          <Text>
               <tt:value length="10" ref="ROOT"/>
          </Text>
    </tt:template>
    Thanks.

  • Blank Spaces in the report

    <p>Hi </p><p>My Report has some columns which has the option as "Can Grow" so that when the returned value from the database is more that one line it can accomdate the data in the field.</p><p>The problem i am facing is that when the records are printed in the pages and when the next record is unable to fit in the remaning section of the report it automatically pushes to the next page.<br />In this scenario the previous page has blank space after the next record is printed.</p><p>Is there way that i can suppress this balnk space and force teh record to be printed in the same page and when the page is over it follows in the next page.</p><p>Thanks in Advance<br />Moa</p>

    <p>My problem was that I wanted to display several lines in a total field: order amount, minimum charge, delivery charge and tax. When any of them was zero, I needed to hide it without leaving a big gap. </p><p>Here was the solution: </p><p>Create a textbox. Set the textbox&#39;s "Suppress blank lines in embeded fields" property. <br />Instead of using database field (for example, table.fieldValue) and a label, create a formula that says:  </p><blockquote><p>If isNull{table.fieldValue} then </p><p>    "" </p><p>else </p><p>"Value:" + Chr(9) + ToText({table.fieldValue})   </p></blockquote><p>I placed a tab in this formula to space it out. Add tab stops (one left-aligned, one decimal) to your textbox, and drag the formula into it (embed) instead of the database field. Add the other fields to the textbox as well, separating fields by adding carriage returns. Bingo. The field and the line will disappear when there is no data.</p><p> I hope this helps.</p>

  • Inserting white space after comma, full stop, etc...

    Hello,
    I have a text file. I want to add a blank space after all commas, full stops, exclamation marks and etc in that file.
    How can I do that?
    Edited by: user13223181 on Oct 5, 2010 2:55 AM

    suri_java wrote:
    you read the text file and append to buffer read and [program Example|http://www.roseindia.net/java/beginners/java-read-file-line-by-line.shtml] and change the file as per your requirement .
    I hope its helpful . Code examples on that site are largely flawed in the extreme. What's worse, they don't even respond to feedback or implement suggested improvements.
    db

Maybe you are looking for

  • Error during the upgrade phase "start_shdi_first"

    Hello, We are having issue with upgrading r/3 4.7 enterprise extension set to ECC 6.0 Here the error message goes.... starting system failed rc=0 to analyse the error during start of shadow instance view files 'Startsfi.log' and 'devtrace.log' in dir

  • Wlc 5500 authentication timeout

    I have a WLC 5500 controller. I have two WLANS (OBSD-Internal and OBSD-BYOD). I have authentication setup to the WLC for the BYOD WLAN using LDAP (users connect with an AD user account). They are required to re authenticate every few minutes. This on

  • Record count in txt file

    Hi Experts, Actually I have an output file with 3 records as like this sl.no,EmpNo,EmpName    1,1001,abc 2,1002,xyz 3,1003,lkj but the required output was i dont need the header record instead in that place i require current date, company name and re

  • Was try'n to download free games to my ipod touch, and it synced it and i lost 1,000 songs and have no games!!UUGGGH please help

    I was trying to down load some free games from the app store onto my ipod touch, and it accidentally synced with my computer, and now not only don't i have the games, but i lost my 1,000 songs. now my ipod is blank!!! can someone help me please

  • Adding a blog entry from another computer

    Is it possible to add a blog entry from another computer? Say all my iWeb sites are on my desktop computer and I want to add a blog entry from my laptop.