Delete from string

Hello,
In the attached VI, I am trying to delete all the text data and just be left with the numeric values to be placed in an array.  I was thinking of converting the string to a numeric array and then deleting the excess arrays.
Can you offer some more guidance to get the correct array?
Thanks,
hiNi.
Attachments:
Untitled 3.vi ‏11 KB

duplicate post. Do NOT create a new thread for an existing question.

Similar Messages

  • Delete a char from string ?

    Hi,
    I want to delete a char from string. i used the following function.
    String f = formulla.replace('[','');
    The above function doesnt work as it tells me to put a space or some char in 2nd parameter which i dont want. i just want to delete all occurences of some specific char in a string.
    Any suggestion.
    Thanks alot.

    u can do:
    String before;
    char charToReplace;
    StringBuffer tempBuf = new StringBuffer(before);
    for (int i=0; i<tempBuf.length(); i++)
            if (tempBuf.charAt(i)==charToReplace)
                  tempBuf.deleteCharAt(i);
    String after = tempBuf .toString(); HTH
    Yonatan

  • Take and delete a String from another String

    I have original input string= 111100001111
    I need to Take for example the least 4 bits .... Output= 1111
    and to be removed from the original input string so the original input string= 11110000 
    I am trying to make a generic one but the point is that I can not delete subset that I take from the original input String.  
    How can I take and delete from a string in the same time? 
    Solved!
    Go to Solution.

    Something like this?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Split String.png ‏13 KB

  • Problems deleting a string from an external file.

    hi!
    I am working on a program but am having problems deleting a string of information from an external file. The code I have managed to do only seems to be deleting the surname. The rest of the string remains and the Surname from the string bellow the one that should have been deleted moves to where the surname that was just deleated was.
    this is the code snippet that should be deleting the string:
              System.out.print("Please enter the last name of the contact: ");
              last_name = dataInput.next();
              int z = 0;
              for (int i=0; i < number_of_records; i++)
                        if ((last_name.compareTo(lastName)) < i && (last_name.compareTo(lastName[i]) > i))
                                  z = i;
              for (int i = z; i < number_of_records; i++)
                        lastName[i] = lastName[i+1];
    Anyone got any ideas why its not deleting the whole string?
    the extrenal file is set out like:
    surname,,first name,,phone number

    I don't think you have given enough information to answer this question completely; however, here is my guess:
    The code that appears to be doing the "deleting"
    for (int i = z; i < number_of_records; i++)
        lastName[i] = lastName[i+1];
    }is only acting upon the lastName array.

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

  • Count of rows deleted from ResultSet

    Hi: I have the following
    String query = "delete from REMEDY.trs_notes where ROWID NOT IN (SELECT MIN(ROWID) from REMEDY.trs_notes group by NOTEID)";
    stmt = remedyMDSconn.createStatement();
    rs = stmt.executeQuery(query);
    Is there anyway I can get the number of rows that were deleted from rs variable?
    Thanks
    Ravi

    I wonder that this worked without exception.
    [http://java.sun.com/javase/6/docs/api/java/sql/Statement.html]
    As the API docs states, you should use Statement#executeUpdate() for this.

  • A Table that was created at Run time. A Row Properly Deleted from Table Is Still Present on Form with BindingNavigator

    Hello
    I have a dataset that was created at design time
    but - after I run the app, it randomly creates a table based on The Users name
    since I do not know the users name before had, the table is not part of my existing dataset
    (I actually used an insert into sql nonquery to just make this table a copy of the masterUserTable)
    Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
    I thought I did so with this code: 
            'TODO: This line of code loads data into the 'MyLearningDBDataSet.masterUserTable' table. You can move, or remove it, as needed.
            Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
            Dim ThisNewVariable As String = MyUserNameIs & "UserTable"
            Dim ThisNewTableName As New DataTable
            Me.MyLearningDBDataSet.masterUserTable.TableName = ThisNewVariable
            Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
    that appeared to do the trick  (but if it is incorrect please advice on the proper way to add a table made at runtime to a users existing datset)
    Else where in my code  I successfully execute the following NonQuery :
            SqlString= "DELETE FROM " & MyUserNameIs & "UserTable" & vbCrLf &
                "WHERE vState='" & txtStateInfo.Text & "';"
    I check in Visual Studio 2013 that the row was deleted from the "GabrielUserTable"  (Gabriel is the current value of MyUserNameIs) by using the Server Explorer and right clicking
    on the table and choosing show talbe data
    But the MyMainDBBindingNavigator is still showing the item I deleted.
    So after searching for answers - I created a new button for testing and added the following code to test if it would work
            Me.Validate()
            Me.MyMainDBBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.MyLearningDBDataSet)
    but the data is still shwoing after deleting it with my NonQuery 
    Please Help!

    Hi genterprise,
    >> Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
    In my option, if you want to rebind the users table to the navigator, you need to set the BindingNavigator.BindingSource. Based on your description, it seems that you did not reset the datasoure of the MyMainDBBindingNavigator. It was the original datasource
    of the masterUserTable. For more details about BindingNavigator.BindingSource Property. You could refer the link below:
    # BindingNavigator.BindingSource Property
    https://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator.bindingsource%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to remove/delete from a mysql table

    Hello!
    Please can someone help me with this one; I need to remove/delete a a row in a mysql table. When I use the query below, it removes this line from other tables containing the same numbers too. I only want to remove it from this table alone
    String update= ("DELETE FROM info WHERE Number = '" + Nr + "' AND week= " + week+ ");
    THX

    I don't understand this. You're saying that running this query removes values from other tables besides your info table? I don't believe it.
    One thing I'd caution you on is using names like "info" and "number" for tables and columns. They sound suspiciously close to keywords for your database. You'd be better off using less generic, more application specific names.
    But I don't think that explains the behavior you're describing. Either this is a very serious bug in MySQL or a very serious misunderstanding on your part.

  • Error 116 at Unflatten from string.....

    Hi I want to save and load the control values of
    the tab pages I am getting the following error
    "Error 116 occurred at Unflatten From String     
          Unflatten or byte stream read operation
    failed due to corrupt, unexpected, or truncated data."
      the attached is the VI can
    anyone tell me what is wrong ….thank you
    Attachments:
    save n load example.vi ‏70 KB

    All that you need to do is right-click on the Read from Text File and Write to Text File functions and uncheck "Convert EOL".
    Other comments:
    You should not hard-code the path inside the VI. Either place a front panel control to specify the path (perhaps with a default value set), or generate the path so that it is relative to the VI (such as being in the same directory as the VI).
    You are not wiring all your errors through so some errors can be lost.
    You do not need to have the VI open a reference to itself. If you delete the Open VI Reference function the code will still work.

  • Execute ABAP command from string

    Hello ABAP experts,
    I have to generate a file with a o lot of fields that are calculated from other fields. I have a list to detailed each rule.
    For example : field 09 = field 05+ field 06+ field 07+ field 08
                         field 15 = (field 05+ field 06) * 0.15
    I wanted to stored the description of each rule in a table in order not to hard code these rules in the program. As the rules are dirfferents, I thought that the best solution was to write directly the ABAP code for the calculation in an external table z_table like this :
    Field                Instruction
    f_09                 f_09 = f_05 + f_06 + f_07 + f_08
    f_15                 f_15 = (f_05 + f_06) * 0.15
    I ask me if it is then possible to execute the content of the string z_table-instruction ?
    I hope to be clear. don't hesitate to ask me question if I am unclear.
    Many thanks in advance.

    You might get there by generating a dynamic, temporary program using the ABAP statement GENERATE SUBROUTINE POOL (see online help).
    You will have to add data declarations to make an executable subroutine out of these calculations, which will return the final result to the calling program.
    Thomas
    P.S. you should make sure that the table holding the ABAP code does not contain malicious statements like "DELETE FROM BSEG WHERE..." or similar

  • Delete from xml file

    hello,
    i m new to XML.i want to delete the object with specified mobile number.how it can be deleted?please help me to do this.it's gr8 help for me.this is my xml file which i generate.
    <?xml version="1.0" encoding="UTF-8"?>
    <java version="1.5.0_06" class="java.beans.XMLDecoder">
    <object class="com.synerecis.client.Address">
    <void property="city">
    <string>A&apos;bad</string>
    </void>
    <void property="companyName">
    <string>synerecis</string>
    </void>
    <void property="groupName">
    <string>MyGroup</string>
    </void>
    <void property="mobileNo">
    <string>9924446472</string>
    </void>
    <void property="name">
    <string>Shruti</string>
    </void>
    <void property="state">
    <string>Gujarat</string>
    </void>
    </object>
    </java>

    You can't delete from a file. you have to re-write it. Load it, skip what you don't want, and write the rest.

  • Hi i am using OS 10.8.5 i hv a problem moving items to trash when i delete any thing it deletes from specific folder but dosnt appear in trash n my hard drive space is not getting free kindly help me

    hi i am using OS 10.8.5 i have a problem moving items to trash when i move a specific thing to trash it deletes from that folder but does not appear in trash and my hard drive space is not getting free i am a new user to mac kindly help  me out

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • Parent getting deleted when it's required child is deleted from BCC

    I'm extending the product catalog to attach another object, say additional info and this is a mandatory field during product declaration and hence this property is been marked with required=true
    But whenever the child item i.e, additional info is deleted through BCC, the products which are associated with this objects are also getting deleted from BCC.
    I guess this is how ATG deals with relationships. Business team is asking for any alternate or better approach.
    Is there any round about way of having the product deleted and still have this some kind of mandatory check working?

    Below is a sample xml configuration. In the case below, when delivery type is deleted from BCC, the associated products also get deleted
    <item-descriptor name="product">
            <table name="dcs_product" type="primary" xml-combine="append">
                <property name="description" required="true" />
            </table>
            <table name="tf_product" id-column-name="product_id" type="auxiliary">
                   <property     name="deliveryType" item-type="deliveryTypes" column-name="delivery_type"
                            display-name-resource="DeliveryType" category-resource="categoryBasics"
                            required="true" default="DT02"
                            hidden="false" writable="true" cache-mode="inherit" queryable="true" >
                            <attribute name="propertySortPriority" value="5"/>
                </property>  
                <!-- Story TF-384 merchandizing attributes and delivery type end -->           
            </table>
    </item-descriptor>
    <item-descriptor name="deliveryTypes" display-property="description" display-name-resource="DeliveryType" >
            <attribute name="resourceBundle" value="atg.commerce.CustomCatalogTemplateResources"/>
            <attribute name="plural-display-name-resource" value="DeliveryType.plural"/>
            <attribute name="create-asset-name-resource" value="DeliveryType.create"/>
            <attribute name="new-asset-name-resource" value="DeliveryType.new"/>
            <attribute name="plural-asset-name-resource" value="DeliveryType.plural.select"/>
            <attribute name="select-asset-name-resource" value="MDeliveryType.select"/>
            <table name="tf_delivery_types" id-column-name="id" type="primary">
                <property    name="id"    column-name="id"    data-type="string"
                    hidden="false" writable="true" required="false" cache-mode="inherit" queryable="true"
                    category-resource="categoryBasics" >
                    <attribute name="propertySortPriority" value="1"/>
                </property>
                <property    name="description"     column-name="description"     data-type="string"
                    hidden="false" writable="true" required="true" cache-mode="inherit" queryable="true"
                    display-name-resource="DeliveryType" category-resource="categoryBasics" >
                    <attribute name="unique" value="true"/>
                    <attribute name="propertySortPriority" value="2"/>
                </property>
    </table>
        </item-descriptor>

  • Mails are not getting deleted from server

    Hi
    I am reading a mail from using java mail from my mail server.
    When i am setting the message.setFlag(Flag.DETELED,true);
    the mail is not getting deleted from the server.
    I am not able to trace the problem, please help me solving this problem. It's a bit urgent.
    store = session.getStore("pop3");
    store.connect(hName, portNo, uName, pWord);
    folder = store.getFolder("INBOX");
    folder.open(Folder.READ_WRITE);
    Message message[] = folder.getMessages();
    System.out.println("Unread Msg Count : " + folder.getUnreadMessageCount());
    int n = message.length;
    for (int i = 0; i < n; i++) {
    fromMsg = (message.getFrom()[0]).toString();
    subMsg = (message[i].getSubject()).toString();
    if (folder instanceof POP3Folder) {
    POP3Folder pf = (POP3Folder) folder;
    Part messagePart = message[i];
    content = messagePart.getContent();
    if (content instanceof Multipart)
    messagePart = ((Multipart) content).getBodyPart(0);
    String contentType = messagePart.getContentType();
    Part messagePart = message[i];
    content = messagePart.getContent();
    if (content instanceof Multipart){
    messagePart = ((Multipart) content).getBodyPart(0);
    String contentType = messagePart.getContentType();
    message[i].setFlag(Flag.DELETED, true);
    store.close();
    Thanks and Regards,
    Luv Amieee...
    xx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    yeah true...
    i did not close the folder.
    i got to know from sun faq only later on yesterday.
    but still.. thanks a lot...
    luv amieee..
    xx

  • Delete from Database?

    How do you delete a row from a database. I have 2 columns (user and password)in the Database so far with 4 records. I have constructed a frame with 4 radiobuttons and a jbutton. I want the program to delete for example the first record if the first radiobutton is selected. I am nearly there but I need a little help.I am struggling with the SQL code needed.
    here is what i've done so far:
    public void deleteser(){
    String rdsn = "jdbc:borland:dslocal:C:\\JBuilder6\\bin\\userinfo.jds";
    String rdbUser = "Adham";
    String rdbPass = "reqs";
    try {
    Connection cons = DriverManager.getConnection(rdsn, rdbUser, rdbPass);
    Statement stmnt = cons.createStatement();
    String query = "SELECT*FROM Users"; // Users is the name of the table
    ResultSet rs = stmnt.executeQuery(query); // ResultSet object to hold the result of the query
    //int cnt = 0;
    while (rs.next()) {                                                                                       String s = rs.getString("User");
    String p = rs.getString("Password");
    //cnt++;
    if (duser1.isSelected()){
    break;}
    else if (duser2.isSelected()){
    break;}
    else if (duser3.isSelected()){
    break;}
    else if (duser4.isSelected()){
    break;}
    else if (duser5.isSelected()){
    break;}
    rs.close();
    stmnt.close();
    cons.close();
    } catch (Exception e) {
    e.printStackTrace();
    return;

    Still unable to do it, this is how it looks now:
    public void deleteser(){
    String rdsn = "jdbc:borland:dslocal:C:\\JBuilder6\\bin\\userinfo.jds"; // the odbc address of the DB.
    String rdbUser = "Adham"; // the user account to the DB.
    String rdbPass = "reqs"; // password for the dbuser.
    try {
    Connection cons = DriverManager.getConnection(rdsn, rdbUser, rdbPass); // gets a connection to the DB
    Statement stmnt = cons.createStatement();
    Statement instmnt = cons.createStatement(); // get a statement which can execute the sql-code
    String query = "SELECT * FROM Users"; // Users is the name of the table
    ResultSet rs = stmnt.executeQuery(query); // ResultSet object to hold the result of the query
    int cnt = 0;
    while (rs.next()) {                                                   // 'next' takes you down to the next row of the DB
    String s = rs.getString("User");
    String p = rs.getString("Password");
    cnt++;
    if (cnt==1 && duser1.isSelected()){
    String sql = ("DELETE FROM USERS VALUES ('"+ s + "','"+ p +"')");
    instmnt.executeUpdate(sql);}
    else if (cnt==2 && duser2.isSelected()){
    String sql = ("DELETE FROM USERS VALUES ('"+ s + "','"+ p +"')");
    instmnt.executeUpdate(sql);}
    else if (cnt==3 && duser3.isSelected()){
    String sql = ("DELETE FROM USERS VALUES ('"+ s + "','"+ p +"')");
    instmnt.executeUpdate(sql);}
    else if (cnt==4 && duser4.isSelected()){
    String sql = ("DELETE FROM USERS VALUES ('"+ s + "','"+ p +"')");
    instmnt.executeUpdate(sql);}
    else if (cnt==5 && duser5.isSelected()){
    String sql = ("DELETE FROM USERS VALUES ('"+ s + "','"+ p +"')");
    instmnt.executeUpdate(sql);}
    rs.close();
    stmnt.close();
    cons.close();
    } catch (Exception e) {
    e.printStackTrace();
    return;

Maybe you are looking for

  • Items off the stage are showing up in the browser. How do I stop this?

    When learning Flash, I was taught in the beginning that only items that appear on the stage actually show up in the final animation.  Clearly, these people were wrong.  I thought it would be easy to have some text move in from off the right side of t

  • E-mail not coming

    I'm not receiving any e-mail, and I'd tryed so much. Sent by 4 or 5 different e-mail's, but none came. What can be this? I've lost a proposal of job cause this. Please, give me a solution, more fast as you can. Thanks, Pablo III 

  • JDeveloper runs slow

    Jdeveloper runs very slow in my computer which has the following configurations: P3 667 Mhz with 512 MB RAM. Usually 300 MB physical RAM is free before JDev is run. Is it something to do my machine or other people are also facing the same kind of per

  • Database in Mounting state for long time

    Hi everyone, i want to share with you strange thing happening on Exchange 2010 latest SP environment A mailbox server crashed, and two of the databases on it came with (Mounting) state for a long time. Those databases have copies on another servers.

  • Missing parameter in applyRadialBlur

    All you fans of radial blur: The paramaters for applyRadialBlur are as follows: amount, blurMethod: RadialBlurMethod, blurQuality: RadialBlurQuality. What about blur center? It doesn't get picked up by the script listener either. What's going on?