Inserting a Character in between a String

Dear All.
     I have a string of around 60-80 characters and its length depends at run time. Now I would like to insert a character value between the 3rd and the 4th character of the string.
E.g : Str1 = '020BUPATEXAS...'
Now I would like to insert a value 'E' between a 3rd charactre and 4th character as below:
Str1 = '020EBUPATEXAS....'
    Can anyone throw some light on this.
Regards, Vinay

Hi,
Another solution witout new variable:
  DATA:
    str1                          TYPE           string
                                  VALUE          '020BUPATEXASxxxxxxx'.
  CONCATENATE str1(3) 'E' str1+3 INTO str1.
Regards,
Daniel

Similar Messages

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • How to insert special character like trademark and registered mark.

    I have tried using prepared statment, but characters like � (registered mark) are not inserted properly, in fact i tried using some debug statements before inserting. the data that is coming from html form fields it self shows that � - such characters are converted to ? . So on consol instead of � i see ?. How do I make sure that data passing from html form will pass � in a right manner and not ?. Also how do i insert these symbols in database

    What database are you using, and what is the character set use for storage in that database?
    What character set is your HTML page using?
    You may have a character set mismatch somewhere. The registered symbol � is character 174 in Unicode and LATIN-1, so it cannot be displayed using just the ASCII character set.
    If you have the character in a java String, it should be passed to the database properly with a PreparedStatement. Strings are Unicode in java.
    Scott
    http://www.swiftradius.com

  • Differnce between null string and an empty string??

    what is the major difference between null string and an empty string??
    I wrote the following simple program and I could see some different output.
    Other than that, any other differences that we should pay attention to???
    C:\>java TestCode
    Hello
    nullHello
    public class TestCode
         public static void main(String[] s)
         {     String s1 = "";
              String s2 = null;
              System.out.println(s1 + "Hello");
              System.out.println(s2 + "Hello");
    }

    There's a big difference between the two. A null String isn't pointing to an object, but an empty String is. For example, this is perfectly fine:
    public class TestCode
        public static void main(String[] args)
            String s = "";
            System.out.println(s.length());
    } It prints out 0 for the length of the String, just as it should. But this code will give you a NullPointerException:
    public class TestCode
        public static void main(String[] args)
            String s = null;
            System.out.println(s.length());
    } Since s isn't pointing to anything, you can't call its methods.

  • Difference between null string and empty string??

    what is the major difference between null string and an empty string??
    I wrote the following simple program and I could see some different output.
    Other than that, any other differences that we should pay attention to???
    C:\>java TestCode
    Hello
    nullHello
    public class TestCode
         public static void main(String[] s)
         {     String s1 = "";
              String s2 = null;
              System.out.println(s1 + "Hello");
              System.out.println(s2 + "Hello");
    }

    The difference is that an empty String is just empty but a null String has no value (i.e. it is not instantiated) this has signifigance since all Strings are objects.

  • Is there a way to delete text between two strings?

    In Pages, is there a way to delete all text containted between two strings?
    For example, if I have a text document that looks like this:
    String 1
    String 2
    Unwanted text
    Unwanted text
    String 3
    String 4
    Is there was to delete the unwanted text between string 2 and 3 so it looks like this:
    String 1
    String 2
    String 3
    String 4
    The unwanted text is differnet between documents but string 2 and 3 are constant. I want to do this via automator for the same strings on multiple documents.
    Any help is appreciated!

    Do you mean Pages '09 v4.3?
    There were some links here:
    https://discussions.apple.com/message/24051199#24051199
    Peter

  • How to insert special character in sgm file and interprete it without isoents while opening in FM9.0

    I have an sgm file which contains special characters in different languages.
    <!DOCTYPE MANUAL PUBLIC "-//SWE-XXX//DTD XXX MANUAL-DTD 2.0//EN">
    <MANUAL LANG="CS">
    <TITEL>
    Polish characters: &oacute;&ecirc;&iquest;&ntilde;&aelig;&Ntilde;&AElig;&Ecirc;&yen;&Oacute;&pound;
    Czech characters: &eacute;&igrave;&oacute;&iuml;&aacute;&oslash;&egrave;&iacute;&ugrave;&ograve;&uacute;&Og rave;&Igrave;&Eacute;&Oacute;&Uacute;&Ugrave;&Egrave;&Oslash;&Iacute;&Aacute;&Iuml; aacute: &aacute;</TITEL>
    </MANUAL>
    Is there any way to insert special character directly in sgm file, so that it won't have to be interpreted by isoents mapping rules?
    isoent.rwr interpretes oacute as:
    entity "oacute" is fm char 0x00F3;
    But I would like to use 0x00F3 directly in fm file, so that if any additional character is needed - I won't have to update isoent files
    I've tested already:
    &#x00F3;
    &x00F3;
    &0x00F3;
    but with no luck
    Is there anyone who could help me with it?
    I will really appreciate your help
    /Joanna

    Hi Michael. Thank you for your reply.
    There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:
    Default API client:  FmTranslator
    SGML character encoding:  ISO Latin1
    XML character encoding:  UTF-8
    Namespace: Enable
    CSS2 Preferences:
    Generate CSS2: Disable
    Add Fm CSS Attribute To XML: Disable
    Retain Stylesheet Information: Disable
    Entity locations
    Entity search paths
    C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents
    So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)
    Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"
    Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files
    But what I would like to avoid is editing those isoent files each time new character is be needed.

  • Non-hex character in a hex string error message

    Hi everyone,
    I encountered n error message in Illustrator "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string." when trying to open a particular file.
    File was originally created on a Windows 7 PC, tried opening file on Mac OS 10.7.5, same Illustrator version 18. Also tried opening in PDF, Distiller, but didn't help.
    Did tried to change Illustrator Preferences in both Windows and Mac, following the steps in the TecNote:
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    When trying to open the file from the File > Open menu, with the keys held down, it did not open a blank file window, neither did it created a duplicate copy in the Finder where the file is located.
    The file in question had about 15 artboards,  a few embedded images, approx 2.6MB size.
    Any suggestions/assistance would be greatly appreciated.
    Thank you.

    Hi Monika,
    The file was .ai file, as mentioned earlier, was created in Illustrator ver 18.
    Not emailed, stored in the folder, on the Windows PC, not a server. Last saved few days ago, tried to reopen the file from the same computer, but could no longer opened.
    No, Illustrator did not crash, just the error message "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string."

  • Non-hex character in a hex string

    My Illustrator file will not open in Illustrator and I get the "non-hex character in a hex string" window whenever I try to open it. It does open in Acrobat but nothing else. I can't even save it as a pdf file..
    Is there any way I can get around that or fix it?

    karam,
    The first thing to try is to use File>Place in a new document and see how much, if anything, is saved this way.
    The next thing to try is to repair the file code, which is more difficult. The basics are told in this TechNote, the actual recovery consists of changing/adding/deleting code.
    http://kb2.adobe.com/cps/500/cpsid_50031.html

  • Switching between 2 string values

    This is probably a trivial question, but how do I switch between 2 string values to be sent to one input terminal of a larger concatonated string function. The values need to be changed every 100ms or so.
    Thanks
    mhaque
    Solved!
    Go to Solution.

    Why so complicated???
    You can do this particular string manipulation in a single atomic operation using "Append True/False String"
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    AppendTF.png ‏3 KB

  • In Font Book OS 10.8.5 how do you insert a character with Font like you could in 10.6

    In OS 10.6 I could go >edit>special characters: view glyph, glyph Catalog, Font: <font name> and I would see a table of each character in a font. Then, I could select a character and either drag it to my document or click Insert Font in the lower right hand corner and it would put the character into the document.
    How do I do the same thing in OS 10.8.5? How do I insert a character into a document through fontbook or any other manner?

    You need to use another app for this, like Ultra Character Map or Popchar.
    This should only be necessary if you are using a non-standard font, which may not be a good idea (since there is no guarantee your glyph will be seen by anyone else).  If the character exists in Unicode, you should be able to find it in Character Viewer and input via double-click or drag/drop.
    If you provide examples of what you need to input, I can perhaps tell you how to find them.

  • Is there a way to insert a specific gap between clips? (CS4)

    I am trying to insert a 3 second gap in between about 15 clips on a timeline. I could do it manually, but it is sort of a pain. How can I insert a standard gap between clips?

    I know of no semi-automatic way to do this--it's going to be some degree of manual work, whichever way you slice it. But this might help make it a little faster:
    Drop all of your clips, end to end, in your sequence.
    Switch to the Track Select tool; I believe the default shortcut is "A", but I might have changed that.
    With the Track Select tool active, click on the second clip in your sequence to select it and all clips after it.
    Using the numeric keypad on your keyboard, type in "+300" for three seconds, or whatever time duration you need, and hit the Enter key on the keypad. All of the selected clips will be moved forward in time three seconds. This will leave a gap of three seconds between the first clip and the group of following clips.
    Go back to step #3 and repeat this as often as necessary to create the gaps. You should be able to mow through them pretty quickly in this fashion.

  • How to add image between two string

    how to add a image between two string .
    example :
    String one <IMG> String two

    grid1 = new GridLayout( 2, 3, 5, 5);
    container = getContentPane();
    container.setLayout(grid1);
    The parameters in GridLayout specifies 2 rows, 3 columns, 5pixels of horizontal gap, 5pixels of vertical gap.
    Did what i could to help, now can somebody help me with JDialog? =(

  • Function to replace/delete specific character(s) in a string

    Hi, experienced CVI guys,
    Are there some functions shipped with CVI to replace or delete specific characters in a string?
    For example, I want to replace all \/|- with an empty string, or to delete them. What can I do?  Loops are too complex.
    Original string:
    Erasing Device...
    \|/- \ \ \\|/-\|/ \
    Report
    07-Sep-2010, 08:04:55
    Result I want is
    Erasing Device...
    Report
    07-Sep-2010, 08:04:55
    Thanks.
    Solved!
    Go to Solution.

    labc:
    How generic do you want to make your filter?
    For our discussion, I'll call your series of characters a text spinner.  I'm assuming the number of characters in it may vary, but that the pattern is consistent in the respect: the spinner is made up of characters like \ / | -, each followed by the ASCII backspace (char) 8.  (That's 8 cast as a character, which is not the same as '8'.)  In your sample spinner pattern, every occurrence of the ASCII backspace is preceded by one of the spinner characters.  Let's assume that this pattern is constant.
    So what I'd do is search through your input string (yes, using a loop) and copy the input string byte by byte to an output string.  If you find an ASCII backspace in the input string, skip it, and overwrite the last character in the output string (which is one of the spinner characters) with the next character in the input string.
    Yes, you are using a loop, but it's not too complex.
    Here's the whole loop, written as a function.
    // filterSpinner function to strip the text spinner characters out of a string.
    // The text spinner is made up of \ / | - characters separated by (char) 8 (ASCII backspace)
    int filterSpinner(char *inputString, char *outputString)
     int inputPtr, outputPtr = 0;
     // walk though the input string
     for (inputPtr = 0; inputPtr < strlen(inputString); inputPtr++, outputPtr++)
      // search for the ASCII backspace character that's part of the spinner
      if (inputString[inputPtr] == 8)
       // if the ASCII backspace is found,
       inputPtr++;  // increment the inputString pointer to skip the backspace
       outputPtr--; // decrement the outputString pointer to overwrite
           // the spinner character that preceded the backspace
      outputString[outputPtr] = inputString[inputPtr];
     outputString[outputPtr] = '\0';
     return 0;
    You'll also find an attached CVI program which uses it on your sample string.
    Attachments:
    FilterSpinner1.zip ‏5 KB

  • How to display each character of an input string in different rows

    Dear Members,
    I want to write a SQL or PL/SQL where in I can separate and display each character of an input string into multiple rows.
    For eg, the input string is TESTING, I want the result to be displayed as following:
    1 T
    2 E
    3 S
    4 T
    5 I
    6 N
    7 G
    I know we can use substr, but it returns me only one or more than one characters consecutively.
    Please help me get the desired output.
    Thanks in advance.

    Hi,
    Perhaps
    with a as
    select 'TESTING' text from dual
    select level, substr(a.text,level,1)
    from a
    connect by level <= length(a.text)

Maybe you are looking for

  • Color Window in a Screenset

    Does anyone know if it's possible to permanently have the colors window open???? I have dual monitors so I have the space and it would be so much more convenient just to have it open all the time, since logic doesn't automatically assign any interest

  • Expresses not working with Extreme:  another case

    It seems like lots of folks are having similar problems. Here are the specifics of my problem: Using Airport Utility 5.3.1 1. New Airport Extreme N, 7.3.1 firmware, configured as WDS main, radio mode n (g/b compatible), works fine, internet connects,

  • DNS Questions

    Got a couple of weird things going on. Using Postfix, in the mail log when someone sends an email, it states, Connected: unknown - 192.168.0.84. Now everything works fine but it does not give the internal computer name only the IP. It's as if it cann

  • Taking down DAG member for maintenance

    Hello I need some advice on what to do. I have a two-member Exchange 2010 DAG.  One is an active server where everything is mounted.  The other is simply the passive server.  I will need to power down the passive server in a few days for some extende

  • SD and MM business contents

    hi gurus, can any one give details about standard SD and MM business contents regards, nnpr.