Insert Tab character in a string

I'm trying to create a string that will eventually be written
to a text file that has to be tab delimited. I can't figure out how
to insert a tab in the string. Here's an example:
<cfset headerline = 'H' & TAB &
#FORM.order_ID#>
Obviously, 'TAB' doesn't work here. Help?
Michelle

michellezee@comcast. wrote:
> I'm trying to create a string that will eventually be
written to a text file
> that has to be tab delimited. I can't figure out how to
insert a tab in the
> string. Here's an example:
>
> <cfset headerline = 'H' & TAB &
#FORM.order_ID#>
>
> Obviously, 'TAB' doesn't work here. Help?
>
> Michelle
>
>
TAB = #chr(9)#
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Similar Messages

  • Replace tab character from string in ABAP

    hi experts,
    I have a string like this "a<tab character>b<tab character>c<tab character>d". for my processing i want the output like "abcd". How can i replace all occurances of this tab character from my string.
    tab character = a hexa decimal character. I dont know the hex value for this.
    regards
    Raghav

    hi you joined SCN in 2007 its a way long time to say.. ur new.. any ways.
    after declaring the lv_tab as I said...
    REPLACE ALL OCCURRENCES OF lv_tab in <string> with space.

  • How to change display width of TAB character in a TextArea?

    Is it possible to change the width of an insert TAB character in a Flex TextArea?
    I'm capturing FocusEvent.KEY_FOCUS_CHANGE events and manually inserting a "\t" into a text area styled with an embedded monospace font. By default, the TABs are being displayed two and a half monospace characters wide. I need them to display five monospace characters wide.
    Any ideas on how to do this?

    Try doing something like this:
    class MyJTextArea extends JTextArea {
        public boolean keyDown(Event evt,int key) {
            if(key == 13 || key == 10) { // or whatever ascii codes enter may have
                // move carret to next line
            } else {
                super.keyDown(evt, key);
    }which means you have got to catch the enter-key before the actutal JTextArea does this.
    p.s. look at my post, maybe you can help me, too.
    http://forum.java.sun.com/thread.jsp?forum=5&thread=465803&tstart=0&trange=100

  • How do I insert the tab character in a table cell in Pages 5.2?

    I'm typing text in a table cell.  I need to insert a tab in the text.  I've tried all of the modifier keys with the tab.  I read somewhere it would be CTRL>TAB, like Word, but that navigates to the Inspector.

    You will need to add a Unicode keyboard. System Preferences > Keyboard > Input Sources. Click the + button in the lower left. Scroll all the way to the end and select Others > Unicode Hex Input. Select and Add this. Check the box that says Show input menu in menu bar. Exit System Preferences.
    From the Finder menu, select your recent Unicode Hex Input source (it is a black box with white U+ in it). Now, position your cursor in your table cell between the characters where you want to insert a tab character. Press and hold your option key, then type 0009 (zeroes). This is the Unicode sequence for the tab control character. Space will open in your text. Tabs in table cells survive PDF export. The tab mark will not appear with Show invisibles enabled.
    Switch back to your normal country input source in that Finder input source menu.

  • Insert Character in a String ?

    I am trying to insert the following character " / " to my string. It is printing out as 19990923. I want the output to print 1999/09/23
    I need some help with this problem. Thanks for any assistance.
    String[] s2 = eRecord.split(",");
    String stkSymbol1 = s2[0];
    String stkDate1 = s2[1];
    // int a = stkDate1.length() ;
    // buffer.insert(3," / ");
    // System.out.printf("\n%s\n\n" buffer.toString());
    System.out.println ("The Date for the last record is : "+ stkDate1); //

    The error message told you that you have not declare the variable buffer.
    If you really think you do, check if the declaration inside a conditional statement which is invalid.
    Post the code with code tags.

  • Inserting the "enter" character in a String

    Hi,
    I would like to insert a "enter" character in a String to create a new line.
    something like this
    String test = "teste" + char(10) + "teste";
    Thanks in advanced
    Ricardo

    Are you trying to do this in an email? You didn't mention that. If your email encoding doesn't support new lines (the most simple encoding doesn't) you can't send them. I don't know why you'd get those results though, unless you actually put "\\n\\r" in the Java program.
    Anyway, it's not "my solution" it's just a fact. '\n' is the newline character and '\r' is the carriage return character.

  • Allow operator to insert tabs in string control

    I'm trying to allow an operator to insert tabs in a string control with the keyboards tab button. Nothing happens when the tab button is pushed. I tried Skipping the Control in Key Navigation but that didn't work. This is LV 6.1.

    6.1 does not have filter events (where you can discard the tab click), but you can use the event structure with the key down event and if you detect that the tab was clicked you can add a tab to the string programmatically and then use the Key Focus property to set the focus back to the string. I think you might be able to play with the text properties to get the cusor to the end.
    Of course, you can also use another key and simply tell the operators not to click tab, but that would make for an ackward user experience.
    Try to take over the world!

  • 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

  • How to get a set of character within a string?

    Hi,
    I need to cut a set of character within a string. I have tried everthing but I need help.
    Example.
    Database Version 11.2.0.3
    create table tst_string (message varchar2(600));
    insert into tst_string values ('ANR0166I Inventory file expiration finished processing for node OSOGBO, filespace OSOGBO\SystemState, copygroup BACKUP and object type GROUP BASE with processing statistics: examined 43, deleted 43, retrying 0, and failed 0. (SESSION: 1506, PROCESS: 2)');
    insert into  tst_string values ('ANE4175I Starting Full VM restore of VMware Virtual Machine ''mfujiwara'' target node name=''VC1_DC1'', data mover node name=''VC1_DC1_DM3''  (SESSION: 3780)');
    commit;
    select * from tst_string;
    MESSAGE
    ANR0166I Inventory file expiration finished processing for node OSOGBO, filespace OSOGBO\SystemState, copygroup BACKUP and object type GROUP BASE with processing statistics: examined 43, deleted 43, retrying 0, and failed 0. (SESSION: 1506, PROCESS: 2)
    ANE4175I Starting Full VM restore of VMware Virtual Machine 'mfujiwara' target node name='VC1_DC1', data mover node name='VC1_DC1_DM3'  (SESSION: 3780)
    ## I want get
    # From first line following values:
    node OSOGBO
    filespace OSOGBO\SystemState
    examined 43
    deleted 43
    retrying 0
    failed 0
    # From second line
    mfujiwara
    VC1_DC1
    VC1_DC1_DM3Any help can be useful...
    Thanks in advance.

    Hi Frank,
    It looks like message can be seen as delimited lsit of sub-messages, where a number of different characters (perhaps ',' amd ':') may serve as delimiters. Each sub-message may or consist (entirely or in part) of something you want to display.Yes. In my first case where is "ANR0166I" I want get the characteres before "," (e.g "OSOGBO," I want get "OSOGBO") excluding "(SESSION: 1506, PROCESS: 2)"
    Would a user-define PL/SQL function be okay for you?Yes.. no problem.
    I'm not good with shell script, but will try show what I want using SHELL commands:
    See this example:
    ### I create a file named "tst_string"
    $ vi tst_string
    ANR0166I Inventory file expiration finished processing for node OSOGBO, filespace OSOGBO\SystemState\NULL\System State\SystemState, copygroup BACKUP and object type GROUP BASE with processing statistics: examined 43, deleted 43, retrying 0, and failed 0. (SESSION: 1506, PROCESS: 2)
    ## So I used a function sed to get my desired values. The command bellow is poor, but My point is the result.
    $ cat tst_string | sed 's/ANR0166I.*node //g' | sed 's/, filespace//g' | sed 's/, copygroup BACKUP and object type GROUP BASE with processing statistics: //g' | sed 's/. (SESSION.*//g' | sed 's/, deleted//g' | sed 's/, retrying//g' | sed 's/, and failed//g'
    OSOGBO OSOGBO\SystemState\NULL\System State\SystemState 43 43 0 0The result was:
    NODE     FILESPACE                              Examined     Deleted     Retrying        Failed      
    OSOGBO      OSOGBO\SystemState\NULL\System State\SystemState     43           43      0           0I will go check the links wich you mentioned.
    Thanks

  • 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.

  • Replacing a special character in a string with another string

    Hi
    I need to replace a special character in a string with another string.
    Say there is a string -  "abc's def's are alphabets"
    and i need to replace all the ' (apostrophe) with &apos& ..which should look like as below
    "abc&apos&s def&apos&s are alphabets" .
    Kindly let me know how this requirement can be met.
    Regards
    Sukumari

    REPLACE
    Syntax Forms
    Pattern-based replacement
    1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]
    pattern
              IN [section_of] dobj WITH new
              [IN {BYTE|CHARACTER} MODE]
              [{RESPECTING|IGNORING} CASE]
              [REPLACEMENT COUNT rcnt]
              { {[REPLACEMENT OFFSET roff]
                 [REPLACEMENT LENGTH rlen]}
              | [RESULTS result_tab|result_wa] }.
    Position-based replacement
    2. REPLACE SECTION [OFFSET off] [LENGTH len] OF dobj WITH new
                      [IN {BYTE|CHARACTER} MODE].
    Effect
    This statement replaces characters or bytes of the variable dobj by characters or bytes of the data object new. Here, position-based and pattern-based replacement are possible.
    When the replacement is executed, an interim result without a length limit is implicitly generated and the interim result is transferred to the data object dobj. If the length of the interim result is longer than the length of dobj, the data is cut off on the right in the case of data objects of fixed length. If the length of the interim result is shorter than the length of dobj, data objects of fixed length are filled to the right with blanks or hexadecimal zeroes. Data objects of variable length are adjusted. If data is cut off to the right when the interim result is assigned, sy-subrc is set to 2.
    In the case of character string processing, the closing spaces are taken into account for data objects dobj of fixed length; they are not taken into account in the case of new.
    System fields
    sy-subrc Meaning
    0 The specified section or subsequence was replaced by the content of new and the result is available in full in dobj.
    2 The specified section or subsequence was replaced in dobj by the contents of new and the result of the replacement was cut off to the right.
    4 The subsequence in sub_string was not found in dobj in the pattern-based search.
    8 The data objects sub_string and new contain double-byte characters that cannot be interpreted.
    Note
    These forms of the statement REPLACE replace the following obsolete form:
    REPLACE sub_string WITH
    Syntax
    REPLACE sub_string WITH new INTO dobj
            [IN {BYTE|CHARACTER} MODE]
            [LENGTH len].
    Extras:
    1. ... IN {BYTE|CHARACTER} MODE
    2. ... LENGTH len
    Effect
    This statement searches through a byte string or character string dobj for the subsequence specified in sub_string and replaces the first byte or character string in dobj that matches sub_string with the contents of the data object new.
    The memory areas of sub_string and new must not overlap, otherwise the result is undefined. If sub_string is an empty string, the point before the first character or byte of the search area is found and the content of new is inserted before the first character.
    During character string processing, the closing blank is considered for data objects dobj, sub_string and new of type c, d, n or t.
    System Fields
    sy-subrc Meaning
    0 The subsequence in sub_string was replaced in the target field dobj with the content of new.
    4 The subsequence in sub_string could not be replaced in the target field dobj with the contents of new.
    Note
    This variant of the statement REPLACE will be replaced, beginning with Release 6.10, with a new variant.
    Addition 1
    ... IN {BYTE|CHARACTER} MODE
    Effect
    The optional addition IN {BYTE|CHARACTER} MODE determines whether byte or character string processing will be executed. If the addition is not specified, character string processing is executed. Depending on the processing type, the data objects sub_string, new, and dobj must be byte or character type.
    Addition 2
    ... LENGTH len
    Effect
    If the addition LENGTH is not specified, all the data objects involved are evaluated in their entire length. If the addition LENGTH is specified, only the first len bytes or characters of sub_string are used for the search. For len, a data object of the type i is expected.
    If the length of the interim result is longer than the length of dobj, data objects of fixed length will be cut off to the right. If the length of the interim result is shorter than the length of dobj, data objects of fixed length are filled to the right with blanks or with hexadecimal 0. Data objects of variable length are adapted.
    Example
    After the replacements, text1 contains the complete content "I should know that you know", while text2 has the cut-off content "I should know that".
    DATA:   text1      TYPE string       VALUE 'I know you know',
            text2(18)  TYPE c LENGTH 18  VALUE 'I know you know',
            sub_string TYPE string       VALUE 'know',
            new        TYPE string       VALUE 'should know that'.
    REPLACE sub_string WITH new INTO text1.
    REPLACE sub_string WITH new INTO text2.

  • How to type "tab" character in terminal?

    Hi,
    In the terminal, I would like to be able to simply type a literal "tab" character. I know, by default, the tab key is used for auto-completion based on file system (I would like to keep it that way).
    I tried several things, nothing seems to work for me:
    - Copy-paste an existing tab character within the terminal
    - Add keyboard shortcut in the Terminal preferences > Settings > Keyboard (/011)
    - Insert 'LINE TABULATION' character from the Terminal > Edit > Special Characters... window
    Hopefully, someone has done this before?

    You can type any character that has a special meaning in the terminal by preceding it with ^V. So to type a tab character, just type ^V followed by the tab.

  • Tab characters in a string indicator box

    I have a string indicator box and would like to make text on different lines match up. When I try using the tab character or a \t I only get a single space. Is there a trick to making the text line up?

    Whenever the string indicator is too lame for my purposes I usually go with the ActiveX text box.

  • How to find out how many space character in setence (string var) ?

    Dear all Master,
    I need Your help please.
    Topic:
    Script Editor.
    My System:
    -CUCM 7.0
    -UCCX 7.0 premium
    -Nuance recognizer 9.0
    Question:
    ABC = string var.
    ABC = "this is sample"
    2 space character in ABC string var.
    How to find out how many space character in ABC var ?
    Regards,
    Susanto

    Hi
    Create a int variable called whatever you want, then insert a SET step.
    Set the variable to the new int you created, and then paste this into the 'value' field:
    String[] myarray = teststring.split(" ");
    return myarray.length -1 ;
    Basically it splits the string into chunks each time it hits the " " character.
    This results in an array of the resulting chunks (i.e. words), which is one more than the number of spaces. -1 from that, and you have your int variable set to the number of spaces.
    Regards
    Aaron
    Please rate helpful posts...

  • Tab character to the left of an auto-number

    I have InDesign CS4 documents with numbered lists in various places in the documents. I've been numbering them manually because I can't find a way to insert a tab character in front of an autonumber. The Bullets and Numbering settings dialog won't let me insert a tab at the beginning of an auto-number -- gives an error message. The reason for the tab in front of the number is so that the numbers will align right when there are 10 or more items in the list.

    Jay,
    You don't need to insert tabs, you set everything in the "Bullet and Number Position" section of the bullets -and-numbering tab. These values work for 10 points Minion:
    Alignment: Right
    Left indent: 6 pt
    First line indent 6 pt
    Tab position: 18 pt
    Peter

Maybe you are looking for