Check character in a list of string

Can anyone help me if i want to check, e.g. a string 1343431234avbasdf, whether there is character exists.
please help.
null

Hi,
use substr function you can find out the charecters in the string. refer to substr function in the documentation.
regards
gaurav
null

Similar Messages

  • How to error check string for LONG list of strings

    Hi All,
    Let's say I want to compare a string variable with a long list of strings to see if it matches anything in that list. Is there some built-in function that will make this easy. Or should I do it the old fashioned way and load a string array with the list and then for loop through the array comparing each element?
    Cheers,
    ScKaSx

    ScKaSx wrote:
    I'm alittle weak at using interfaces. If the string I am trying to compare is (String grade), then how do I define my List to be ("A+", "A", "A-", "B+", "B", "B-", "C+", "C", .....). This is as far as I've got:
    String grade = 'some letter to be compared'
    String [] GradeList = new String [] {"A+", "A", "A-", "B+", "B", "B-", "C+", "C", .....};Maybe I could summarize what I meant using your example:
    Set<String> PossibleGrades = new HashSet();
    PossibleGrades.add("A+");
    PossibleGrades.add("C");
    String grade = "some letter to be compared";
    if(PossibleGrades.contains(grade) )
       // do something...
    }

  • Part of a string contained in one element list's strings

    Hi evebody,
    I have process that use this sql request :
    SELECT $code
    FROM DUAL
    WHERE $code IN ('BMW','MERCEDES','TOYOTA','PEUGEOT');
    Actually, the code is a string which value is car brand. for example 'BMW'.
    I want to change my process and have the possibility to put in $code multiples car brand separated by '||' . For example, 'BMW||RENAULT'.
    In this way, howa could I change my sql request?
    ie I want to check if a part of string exists in a element list's string.
    PLEASE HELP ME
    THANKS

    One way is to use regular expressions:
    SQL> variable code varchar2(100);
    SQL> exec :code := 'TOYOTA';
    PL/SQL procedure successfully completed.
    SQL> SELECT  :code
      2    FROM  DUAL
      3    WHERE REGEXP_LIKE('||' || :code || '||','\|\|BMW\|\||\|\|MERCEDES\|\||\|\|TOYOTA\|\||\|\|PEUGEOT\|\|')
      4  /
    :CODE
    TOYOTA
    SQL> exec :code := 'BMW||RENAULT';
    PL/SQL procedure successfully completed.
    SQL> SELECT  :code
      2    FROM  DUAL
      3    WHERE REGEXP_LIKE('||' || :code || '||','\|\|BMW\|\||\|\|MERCEDES\|\||\|\|TOYOTA\|\||\|\|PEUGEOT\|\|')
      4  /
    :CODE
    BMW||RENAULT
    SQL> SY.

  • How to set List of String as variable value in BPEL

    I am using java embedding to invoke a method which returns a list of strings. I need to set these values in a variable in BPEL to be used later. I am getting following error while setting the value.
    <May 2, 2012 5:18:20 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}mismatchedAssignmentFailure}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{
    summary=<summary>Mismatch Assign.
    cannot set a nonelement value to an element-based variable.
    An attempt to assign a nonelement value to an element-based variable failed.
    Verify the BPEL source for invalid assign activities.
    </summary>}
    Following is the java code
    List<String> providers = Registory.getProviders("1");
    setVariableData("providerList", providers);
    I have defined a xml element in the wsdl defintion:
    <xsd:element name="providerList">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="providerId" type="xs:string" maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    providerList variable is of type "providerList".
    What else do I need to do to convert the List to the xml elements ?

    Well I believe this is not officially mentioned anywhere, but this is the limitations for the java embedding activity. You can assign value to a single variable or to the single part element of variable only. I suggest you go with a java web service. you can check more details on java embedding activity @ http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_java.htm
    void setVariableData(String name, Object value)
    void setVariableData(String name, String part, Object value)
    void setVariableData(String name, String part, String query, Object value)

  • How to display a unicode character in a list ?

    Hi,
    sorry if the question seem to be really easy but I doenbt found of to diaply a special character in a list.
    I thank that it was easy :
    1) display tha windows character map
    2) copy paste the charatcter in the ABAP Program to obtain something like this :
    write '&#8804;'.
    But the displayed character is '#' . So, could you tell me how to display a gived unicode character ?
    Regards,
    morgan

    Hello Morgan,
    you need SAP system with unicode. You can check it from every dynpro/mode:
    System->Status: SAP System dada  Unicode system: yes
    I have checked your sign '&#8804;' on my not UC system: is displayed: '='.
    Bye,
    Peter

  • My Top Rated songs, when I synch my iP4S - comes up with an error message saying it can't find all the songs. When I check, library has songs listed but with a "!" bubble next to them. When I click on them they play. What am I doing wrong?

    When synching, itcomes up with an error message saying it can't find all the songs. When I check, library has songs listed but with a "!" bubble next to them. When I click on them they play. What am I doing wrong? This happens every time so I click them and it sorts them (boring with 200 odd). How can I prevent this?

    Once you successfully add you iTunes library to iTunes Match, you go to Settings>iTunes & App Store on your iOS device and turn on iTunes Match.  Your iTunes Match library will then appear on your iOS device.

  • Calling a Web Service in a SSRS Report - Error Converting String to Generic List of Strings

    Hello,
    I am using SSRS version 2005 and am trying to call a web service to retrieve data for a SSRS report.  I've looked on Google and MSDN for the past 2 days and have exhausted all options.  Here are the details...
    The web service method I am calling accepts 4 parameters...
    Parameter 1 = Generic list of strings
    Parameter 2 = DateTime
    Parameter 3 = Int
    Parameter 4 = Int
    I have created a function (on the CODE tab in report properties) in my report that gets passed a comma delimited string and returns a Generic List of Strings that I use to format Parameter 1.  The code for the function is as follows:
    Public Function GetIDs(ByVal IDList as String) As List(Of String)
       Dim stringArray() = IDList.Split(",")
       Dim genericList As New List(Of String)(stringArray)
       Return genericList
    End Function
    I am passing a string to the function that looks something like this:
    "1,2,3,4"
    When I try to PREVIEW the report, I get an error that reads:
    "There is an error on line 0 of custom code: [BC30002] Type 'List' is not defined"
    I've tried changing the function declaration to pass back a string array:
    Public Function GetIDs(ByVal IDList as String) As String()
        Return IDList.Split(","c)
    End Function
    This returned the error (from the web service): 
    "Error in line 5 position 22.  Expecting state 'Element'.. Encountered 'Text' with name ", namespace"
    I have also tried changing the function declaration to pass back an array: 
    Public Function GetIDs(ByVal IDList as String) As ARRAY
    This also produced the error:
    "Error in line 5 position 22.  Expecting state 'Element'.. Encountered 'Text' with name ", namespace"
    I know that this particular web service method DOES work because it is coded to accept nulls in the first parameter.  So... when I call the method with nulls, it returns a recordset of ALL data (this works fine).  Only when I pass a string to the function (which "filters" the recordset by the ID list), does the error occur.
    Is SRSS limited with respect to VB.NET code so that the List(Of String) statement is not recognized?  Has anyone done this before and if so, how did you convert a comma delimited string to a Generic List of Strings within a function in the SSRS report?
    Any info would be greatly appreciated.
    Thanks!
    Bob

    Hi Bob,
    By default, in custom code, in order to use a variable or function that is not in the "System" namespace, we need to provide the full name.
    In this case, the full name of the "List" is "System.Collections.Generic.List"
    So, to solve the issue, please use the following code:
    Public Function GetIDs(ByVal IDList as String) As System.Collections.Generic.List(Of String)
    Dim stringArray() = IDList.Split(",")
    Dim genericList As New System.Collections.Generic.List(Of String)(stringArray)
    Return genericList
    End Function
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • Custom control for list of string,num​eric values

    Hi,
    I want to create a control in labView 6.1 that presents the user with a list
    of string values on the front panel. The actual strings are material names
    (e.g. Si, Al). With each string value would be associated a floating point
    value that would then be used on the diagram for some numerical processing.
    What I have done is create an array of {string,digital control} clusters,
    but it looks kind of clunky on the front panel. Is there a more elegant
    solution?
    Thanks,
    -John P
    God is a comedian playing to an audience too afraid to laugh.
    - Voltaire

    Some ideas that I use when making this kind of button:
    Make an array of clusters of {string, numeric, boolean} in which:
    The numeric is hidden (right click menu/advanced/hide control) (skip
    this if you want the numeric to display
    and
    The boolean is colored TRANSPARENT and overlaid on the string. So it
    it seems to the user that he clicks on the string but in fact clicks
    on an invisible boolean.
    Another idea is to combine the strings and booleans into one set of
    buttons by making a cluster of identical booleans arranged so that
    they look like an array and setting the boolean text on each button
    to the desired string.
    These ideas imply writing some radio button logic to generate an
    index to select the desired numeric element. This is more work than it
    m
    ight seem
    Easiest is to use events and convert the mouse coordinates into an
    array index. I just made one of these and I have the code handy if
    you like.
    Adam
    On Wed, 18 Jun 2003 19:06:45 -0500, John P wrote:
    >Hi,
    >
    >I want to create a control in labView 6.1 that presents the user with a list
    >of string ...

  • Check bix in the list (report out put)

    I have a field GW_FINAL-DECISION  of char1 in an internal table.
    After executing the selection screen the data from internal table is displayed on the list.
    WRITE : GW_FINAL-DECISION AS CHECKBOX.
    when I select the check box from the list, the value of the internal table is to be saved as 'X'.
    please help me in this regard ASAP.

    Hi,
    I think its better if you use ALV to display the report output and you can handle the check box issue with user_command subroutine of Reuse_alv_grid_display function module. Its simplest approach to solve such problems.
    Cheers
    Phani.

  • Populate html:select with List of Strings

    Hello everyone,
    I need to populate an html:select with a List of Strings. The list I receive is not composed of objects, only Strings. I want each of these Strings to be an option of the select.
    I've tried this way:
                    <html:select property="tamanho" >
                       <html:options collection="gradeTamanho"/>
                    </html:select>Didn't work. Does anyone know how?
    thanks

    Does anyone know how to do this? There has to be someway that I can populate an Option List with a list of contentIDs in a folder. Maybe using CMIS?

  • How to sort a list of strings, without methods and stuff just simple code?

    Hi
    How to sort a list of strings, without methods and stuff just simple code?
    Thanks in adavance!!

    Without methods? How are you going to all the sort code? What is the point of code?
    Collections.sort(List) will sort strings or anything that implements the Comparable interface, or you can use the sort method that takes a Comparator implemenation.
    If you want "just code", you could either get the Collections class souce and follow it to the code. But otherwise, there isn't one set of code. There are various sorting algorithms with advantages and disadvantages. Maybe you'd be better off searching for sorting algorithms and if you understand them, it should be simple to write Java implementations of them.

  • Which is lightweight array list or string tokenizer

    which is lightweight array list or string tokenizer:
    I am reading a flat file and doing some text parsing to find some records which matched my search criteria.
    The flat file will have 5K records at the average and each records is in each line. (\n) is the delimiter to the string tokenizer.
    My Doubt is:
    Will it be good to manipulate all the records to the array list and then manipulating and achieve my task or
    Will it be good if i do a just string tokenizer and achieve my task with out an arraylist.
    Note: There is no unique fields in the records so no way to use hashmap/table.

    DrClap wrote:
    Faster? Actually the stated requirements were "lightweight" and "good". It guess I assumed what they usually mean to me.
    However answering this a different way.
    lightweight - your computer won't be heavier no matter which way you choose.
    good - it will have no barring on your concious or your place in the after life.
    good(2) - Write it the simplest way you think you can and worry about performance later if its a problem.

  • LMS compliance check on all access lists

    Hello, I am trying to create a complaince template in LMS 3.2.1 to check ALL extended access lists for an explicit deny any any rule. I found articles on how to check all interfaces including VLAN's but cannot seem to make it work for access lists. BTW, the access lists are not all named the same on all devices therefore I need to use wildcards for the name.     
    thanks.           

    I forgot to mention that i am running this against Cisco ASA devices which displays like this:
    access-list TEST_ACL extended deny ip any any
    I have tried:
    access-list [#.*#] extended deny ip any any
    but it returns all as compliant becuase it is stopping at the first access-list it finds with the explicit deny ip any any command and not continuing on to check all the other access lists.
    Any ideas?

  • How would I do a http post of the below listed XML string within a JSP?

    Hi,
    How would I do a http post of the below listed XML string within a JSP?
    <DoService xmlns="http://www.gdinrw.org/wss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WSS" version="1.0">
    <ServiceRequest DCP="HTTP_POST" mimeType="text/xml" encoding="UTF-8"><![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]></ServiceRequest>
    <AuthMethod>urn:opengeospatial:authNMethod:OWS:1.0:password</AuthMethod>
    <Credentials>guest,guest</Credentials>
    <FacadeUrl>https://bern:8443/wss_umn_wms/WSS</FacadeUrl>
    </DoService>
    Thanks,
    John

    Yes,
    I need to set up data as POST format before I POST it.
    To be more specific I know how to post within a JSP if an xml element is like:
    <AuthMethod>urn:opengeospatial:authNMethod:OWS:1.0:password</AuthMethod>
    where the field is AuthMethod and the value is urn:opengeospatial:authNMethod:OWS:1.0:password
    but what I am not sure of is when the field has values embedded within it like:
    <ServiceRequest DCP="HTTP_POST" mimeType="text/xml" encoding="UTF-8"><![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]></ServiceRequest>:
    It has a field of ServiceRequest and a value of ![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]
    but it also other value embedded with ServiceRequest like mimeType="text/xml" .
    Thanks,
    John

  • Convert from list to string

    hi All;
    i've got a list which is come from pdf bookmark
    List mylist = SimpleBookmark.getBookmark(reader);now i want to know the length of the list
    so i need to convert it to string..
    how can i convert from list to string...
    anybody can help me?
    Thx after all

    hi cotton m, yea i am new to java..
    so i'm posting on the "NEW TO JAVA" forum
    my problem is, i just need to assure what i'm doing is correct
    i've finish my project anyway..
    cotton.m
    u never been in my position?when u are still learning the language, ure not good at it..
    and try to get help from any body that WILLING to help you?
    u are pro's @ java meh?that's good.. u should help people with your knowledge
    not insult them..
    no flame...

Maybe you are looking for

  • Lock box FLB1

    Hello Sapians, User is using FLB1, which they are posting the debit to the a/c Cash Discounts-receivables for a Customer and getting an error while assigning the Cost center 3000 in company code KK01 "Cost Center 5000/KK02 blocked against direct post

  • Creating a scroll bar

    Ok what I have is a site I am building for school.  I have some textfields loaded from a outside file.  Some of the fields have more text then will show in the size of the box, and you can sroll it down to read it all but unless you try to scroll the

  • Free music for your ears

    [size="4" color="#000066"]Shameless self?promotion of [size="4" color="#000099">http://www.datz.com[size="4" color="#000099">?[size="4" color="#000066"]A?brilliant?new online music download site[size="4" color="#000066"]?[size="4" color="#000066"]WMA

  • Financial Reporting batch runs without being scheduled when services restart

    Hi, hopefully someone may have come across this before: I set up a scheduled batch yesterday (workspace 11.1.1.1.3)  pointing at a batch of 2 large reports. As part of the testing I ran it at a scheduled time during the day and it worked perfectly. H

  • How can i upload music with the new itunes

    so i updated the new itunes and now when im syncing my ipod the music isnt going in. can i burn the music then put it in my computer and itunes will accept it and put it into my ipod? can i un-update my itunes 11? please help