String length excluding input string/character

Long story short, I want to replicate the String Length function but to not include an input string in the character count. For example:
The input (search) string is "the".
My first string to test is "The big red dog."
This would return a string length of 13.
My second string is "Jumps over the lazy fox."
This would return a length of 21.
"Hello World!" would return 12.
"The Lion The Witch And The Wardrobe" would return 26.
Hopefully you can see what I'm trying to achieve. How is this possble?
- James
(I am runnnig Labview 8.5)
Never say "Oops." Always say "Ah, interesting!"
Solved!
Go to Solution.

Use the Search and Replace String to replace your "exclusion string" with an empty string.  Use the String Length on the resulting string.  Make sure the Relace All is set to TRUE.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
String Length.png ‏11 KB

Similar Messages

  • Xml data considered than strings character in«append»&«insert-aft»operation

    Hello,
    I use BPEL10.1.3.1. Here is my problem. I recuperate in a database a CLOB data type :
    <c>
    <d>
    <e></e>…
    </d>
    <f>
    <g></g>
    <h></h>…
    </f>
    </c>
    I insert this CLOB data type in a new variable "compteRenduXml" (type : simple type, xsd language). When I visualize my "compteRenduXml" variable, it is a xml data (that's OK).
    I am trying to insert the "compteRenduXml" variable after the <b>…</b> operation :
    <a>
    <b>…</b>
    </a>     
    The problem is the variable I would like to insert is considered than strings character (and not xml data ! ).
    After, when I try to insert a value in "<e>abcd</e>" for example, I have this error : « The XPath chain does not return any node. »
    Can you help me ?
    Thank you.
    Tania

    If in my Sqlloader script I use :
    INTO TABLE XML_DOCUMENT_TABLE_VWO TRUNCATE
    XMLType(xmlcol)
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    xmlcol
    I have always this error whith the two XML document (< 255 kb, & > 255 Kb)
    Table XML_DOCUMENT_TABLE_VWO, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    Column Name Position Len Term Encl Datatype
    XMLCOL FIRST * , O(") CHARACTER
    Record 1: Rejected - Error on table XML_DOCUMENT_TABLE_VWO.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier

  • How to restrict the length of input field

    Hi,
    How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
    Regards,
    H.V.Swathi

    Hi swathi,
    For this you have to create a simple data type. No need of writing a code.
    Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
    Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
    Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
    Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
    Regards
    Manohar

  • Flex support for writing pad ( inputing chinese character)

    I design a web application that allow customer to input their
    messages into the database.
    If the input is via keyboard, it is no problem. But it does
    not work if the customer is using writing pad for inputing chinese
    character.
    Does Flash support this, if it is, how ?
    Thanks

    I'm sure there is a large part of the Mac market that couldn't care less about this, but for those who can use it it's a major reason for buying SL.
    Actually I seen a fair amount of disappointment from people who found after buying SL that the trackpad character input feature is only available on a restricted number of machines, and some have felt misled by the advertising about it. Hopefully Apple will be able to expand its availability in the future.
    I'd be curious what you find it most useful for: Input of text of some length into documents, emails, etc., or smaller tasks like looking up characters in dictionaries.

  • Length of Input field in PCUI ???

    Hello Expert,
    Is there anyway to change the length of input field ?
    I created a input field of lenght 1 in GUI. and added this field PCUI also. In pcui this field is accepting only one char but the field visiable on screen is too long for a single char.I want to change this visiable length of the field on the screen.
    Please Guide me!!!
    Thanks
    Amit

    Thanks Thirumala for ur reply
    Dear visiable length is not taken from DDIC structure field
    length, that also control length of input value.
    Visiable length is controled by layout Algo. only this much i know.How can we change that, No idea.
    Thanks
    Amit

  • How to input unicode character set from oralce form 9i

    Hi,
    Can anyone show me how to input unicode character set from form 9i. I have designed a form and run it but when I input unicode charater in TEXT ITEM on form (FONT_NAME of this TEXT ITEM is New Roman, AriaTime l ...), but it display incorrectly nor stored it in Database.
    Thank you !

    Thank Duncan R Mills !
    My setting NLS_CHARACTER in Database as follow :
    SQL> SELECT * FROM NLS_DATABASE_PARAMETERS;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    PARAMETER VALUE
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_RDBMS_VERSION 8.1.7.0.0
    18 rows selected.
    Even if I can'nt input unicode character on Oracle Forms, It display incorrectly though I set exactly font_name.

  • In RoboHelp,we can't able to input japanese character in search box while english is able to type?

    Hi
    Our Application having multilanguage support(Localization) which using adobe RoboHelp
    we can't able to input japanese character in search box while english is able to type and get result.please help us if anybody having knowledge for these issue.
    Thanks,
    Sunil

    Hi Anybody,
    Our Application  developed in Adobe Air with  multiple language support ,When user click on  help  menu, It will Open Adobe AIR's  Window component which Render Adobe RoboHelp 8 's xyz.html file which shows Help detail.
    In Help  Window there is search functionality , When user login with english  language , user can able to type english keyword in search box while in Japanese language, user cannot able to type Japanese keyword.
    Also,When user login in japanese language then  user also set it's region language japanese from Control panel of Window XP.
    But I User cannot able to type in Seach box in help window  which  having  . html  Adobe RoboHelp File. This is whole story.
    Please Reply if anybody can have good answer. i am waiting for that.
    Thanks,
    Sunil

  • Inputing the character 'ł' into a varchar2 variable in an oracle database?

    how do I input the character 'ł' into a varchar2 variable in an oracle database?
    I tried in sql plus or PL/SQL developer, I think the app I need it for is run through Oracle forms. each time it appears as a question mark when I cut and psate it from MS word.

    Can anyone help?

  • How to read a string character by character and pass it into an array

    Hi,
    I have a requirement to write a function.The thing is,i need to read string,replace space with a NULL,return in the form of an arrayy.
    for this what i thought is,if the character is not a space,i need to put that into array,if its space,put a NULL for that.
    the string is of type varchar2.
    ex:XX XX XX
    i need some suggestions for this.
    thanks

    Well, you can just use a loop that runs for the length of the string.
    Then for each iteration of the loop, take the next character of the string (substr or similar) and add it to the array. If it's a space, then add a NULL to the array (if that's what you want).
    Easy :)

  • Making space for string (character) in Java

    A permutation is a function. In this particulate exercise, the function is certain space separation of an adjacent letter. Here is an example for the space is 2: After the first letter A, skip 2 spaces and arrive at D, skip another 2 space to arrive at G, so original ABC maps to adg.
    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    maps to (with skip of 2 space):
    adgjmpsvybehknqtwzcfilorux
    You need to have a user input for the skip space, similar to the lab 1. Warning: Because there are 26 characters in the English alphabetic, if user enters an even number, you need to consider add one every time it passes the Z letter. Please help me to solve this problem.

    Try using this code segment:
    String abcString = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    StringBuffer tempBuffer = new StringBuffer();
    StringBuffer outBuffer = new StringBuffer();
    tempBuffer.append(abcString);
    i = 0;
    while(i < abcString.length())
    outBuffer.append(tempBuffer.charAt(i));
    i+=2;
    tempBuffer.setLength(0);
    All you really need to do is change what you're adding to I every time you go through the loop, make it user input. This is simply an example of how to do it.
    -Jason Thomas.

  • String Character Selection

    I just want to know if anyone knows the code so I can select the first character in a string and the last character in the string so that I can do the following function :
    First("ABC") ^ Last("ABC") = Answer
    Tks for any help

    You can use the charAt() method of the String class to help you find out the values. To find the first character use charAt(0) and to find the last character you can use charAt(String.lenght() - 1).
    Example:
    String word = "ABC";
    char firstLetter = word.charAt(0);
    char lastLetter = word.charAt(word.length() - 1);
    I hope this helps.

  • String character conversion

    Can anyone explain me why there are 5 characters in the first range of 256 that are coded back to the question mark.
    for (int i = 0; i < 256; i ++)
         byte[] bytes = new byte[1];
         bytes[0] = (byte) i;
         String temp = new String(bytes);
         byte[] result = temp.getBytes();
         if (result[0] != bytes[0])
              System.out.println(i + ") byte->" + bytes[0] + "< result->" + result[0] + "<");
    }characters 129 (reserved), 141 (RI), 143 (SS3), 144 (DCS) and 157 (OSC) are changed. I m using JDK 1.4.2_02.
    I'm posting it here because I stumbled on it when I was trying to convert a string (known to me as UTF-8) to a Java UTF-8 String. The Greek lower RHO character is '0xCF 0x81' and that last one is 129.

    Rather than crossing your fingers and hoping for the right encoding, you should provide the encoding you wish to transcode explicitly. Here, I test US-ASCII and ISO-8859-1. US-ASCII complains for all code points above 127 (as expected; it's a 7-bit encoding), whereas ISO-8859-1 runs without complaining.
    public class TestEncoding {
      public static void main(String[] args) throws Exception {
        String[] encodings = new String[] {
          "US-ASCII", "ISO-8859-1"
        for (int i = 0; i < encodings.length; i++) {
          System.out.println("TESTING ENCODING: " + encodings);
    testEncoding(encodings[i]);
    public static void testEncoding(String encodingName) throws Exception {
    for (int i = 0; i < 256; i ++) {
    byte[] bytes = new byte[1];
    bytes[0] = (byte) i;
    String temp = new String(bytes, encodingName);
    byte[] result = temp.getBytes(encodingName);
    if (result[0] != bytes[0]) {
    System.out.println(i + ") byte->" + bytes[0] + "< result->" + result[0] + "<");

  • Separate string character

    Hi I have a litle problem!
    I wrote in the first vi data text,then I saved the data into a "write characters to file" , and then i want to open other vi with the data and put each data in the text control, but i dont know how can i separate each initial box to put in the correct box text. Any help?.
    I attachment the 2 files example. For sure its very simple, but i am became mad!!.
    Other question is how can i to transform any vi to icon with terminals to use into other vi?.
    I made a vi, and i want to use into the other vi with the input as terminals to run it well.
    I wait your answers! thanks guys
    Attachments:
    example1.vi ‏19 KB
    example2.vi ‏16 KB

    Hi nayisoe, thanks for the reply.
    Maybe my english is worse than your english.
    But thanks, the movie is PERFECT!!.
    In the first question, I write all the characters in the file, but when i open the file all is join and i dont know how can I remove the first test that i saved, this first text is the first square test...
    I attachment the pics of vis.
    I want to read from file,and the name, number and code show in the text box, but i dont know separate the string, it appear united totally.
    Sorry for my english, regards from Spain.
    Attachments:
    pic1.GIF ‏111 KB
    pic2.GIF ‏22 KB

  • String Character

    Hi Guru,
               Please tell me how we can read exactly second character in string.
               Suppose my string is "ABAP". i want only B. Please guide me....
               Thanks in advance.
    Best Regards,
    Vinayak.

    Breakpoint,
    What does the code segment have to do with *STRING*?
    The code snippet in my thread is using offset. Hope that's fine.
    DATA : var(20) TYPE c VALUE 'ABAP',
           v_offset TYPE c.
           v_offset = var+1(4).
           WRITE : v_offset
    Regarding the FM its also helps to split the string at a given postion as per user's
    choice. In OP case he wants 'B' to be picked up from 'ABAP'. I.e. Second
    letter of every entered string or any combination of characters.
    May be you would like to test this code.
    DATA: E_HEAD(2) TYPE C,
          E_TAIL(2) TYPE C.
    CALL FUNCTION 'C147_STRING_SPLIT_AT_POSITION'
      EXPORTING
        i_string         = 'ABAP'
        i_position       = '2'
    IMPORTING
       E_HEAD           =  E_HEAD
       E_TAIL           =  E_TAIL.
      E_HEAD = E_HEAD+1(1).
    WRITE : E_HEAD
    Edited by: Mishra.Manas on May 10, 2010 1:53 PM

  • Select Option with data length more than 45 character

    Hi everyone,
    Kindly suggest how to use select-option when the data type is of length 128 characters because it is truncating the input after 45 characters. The requirement is to pass 1-7 files in select option input.
    Thanks in advance.

    Hi,
    Select option doest support STRING data type.
    The VISIBLE LENGTH addition is also not working in this case. Also for multiple selection the input length remains the same i.e. 45 characters.
    Thanks.

Maybe you are looking for

  • How to make sum (function) discrimination in report?

    Hi all, I need to create a report for item sales. The sale (item) can be canceled by a customer but it still need to be in the report as well. Foe example, suppose the customer buy four items (banana, apple, orange, grape) each for 100 items, but dec

  • Jsf + cocoon

    Hi, I need links / resource which will give me some information and example on how to integrate jsf and cocoon. ( i have searched with google, but not much helpful, got a few articles about integration advantages, but seldom examples). I am using jbo

  • Bank Upload : Statement 00227 already exists; entry ignored

    Hi We have uploaded the bank using FF.5 for two days 13.7.09 and 14.07.09 seperately. The batch SM35 processed for 14.07.09 first and 13.07.09 second. Now when we are trying to upload 15.07.09, the system is displaying the following error. Is there a

  • HTTPS Keepalive with the CSM & SSL Module

    Has anyone had any success getting a secured web page for a keepalive using the CSM with and SSL module. If so can post an example? Thank you, Dave

  • Signal express development tools for LV

    In SignalExpress 2.0 documentation it says that it is based on advanced Express technology which will be available to Labview users. I am looking for large number of low cost licenses for engineering stations. Love SE idea but implementation is usele