Syllable Counter Method sure doesn't work

Ok, I'm writing a program to calculate the Flecsh index, and I wrote this syllable counter method. I'm definitely doing something wrong, because it doesn't work. This is my class 'Manuscript'
public class Manuscript
     public int numberOfSyllables;
     public String txt = "Life is like a box of chocolates. I love godiva chocolate! I love Lindt chocolate";
     public Manuscript()
          numberOfSyllables = 0;
public void output()
          System.out.println(numberOfSyllables);
public int syllableCount(String txt)
          StringTokenizer syllableCount = new StringTokenizer(txt, " ,.!;/n?");
          String token;
          String endLetterString;
          int wordSyllable;
          char letter;
          char endLetter;          
          do
               token = syllableCount.nextToken();
               String[] array = new String[token.length()];
               int i;
               String arrayVariable;
               wordSyllable = 0;
               for (i=0; i < array.length; i++)
                    letter = token.charAt(i);
                    arrayVariable =  Character.toString(letter);
                    array[i] = arrayVariable;
                    if(array[i] == "a" || array[i] == "o" || array[i] == "e" || array[i] == "i" || array[i] == "u" || array[i] == "y")
                         wordSyllable++;
                         numberOfSyllables++;
                    endLetter = token.charAt(token.length()-1);
                    endLetterString = Character.toString(endLetter);
               if(endLetterString == "e" || (wordSyllable < 2 && endLetterString =="y"))
                    numberOfSyllables--;
          } while (syllableCount.hasMoreTokens());
               return numberOfSyllables;And my driver program:
public class Driver {
     public static void main(String[] args)
          Manuscript text = new Manuscript();
          text.syllableCount("Life is like a box of chocolates. I love godiva chocolate! I love Lindt chocolate");
          text.output();
}And I know I'm passing the same String twice, but it doesn't seem to have any effect, and that's a placeholder for a future user defined String anyway.
The result I get isn't an error, it's a big fat zero syllables. The code compiles just fine, it just prints a zero, so I've got a logic error in there somewhere. I've gone over and over this and have no idea where it is.
Please help me.
Edited by: JavaN00b on Apr 23, 2008 7:11 PM

Wow. I feel unsmart.
I changed my code to read:
          public int syllableCount(String txt)
          StringTokenizer syllableCount = new StringTokenizer(txt, " ,.!/n?;");
          String token;
          String endLetterString;
          int wordSyllable;
          char letter;
          char endLetter;          
          do
               token = syllableCount.nextToken();
               String[] array = new String[token.length()];
               int i;
               String arrayVariable;
               for (i=0; i < array.length; i++)
                    wordSyllable=0;
                    letter = token.charAt(i);
                    arrayVariable =  Character.toString(letter);
                    array[i] = arrayVariable;
                    if(array.equalsIgnoreCase("a") || array[i].equalsIgnoreCase("o") || array[i].equalsIgnoreCase("e") || array[i].equalsIgnoreCase("i") || array[i].equalsIgnoreCase("u") || array[i].equalsIgnoreCase("y"))
                         wordSyllable++;
                         numberOfSyllables++;
                    endLetter = token.charAt(array.length -1);
                    endLetterString = Character.toString(endLetter);
                    if((endLetterString.equalsIgnoreCase("e") && (wordSyllable > 1)))
                    numberOfSyllables--;
          } while (syllableCount.hasMoreTokens());
               return numberOfSyllables;Checking it out, I'm getting the incrementing part of the method works just fine, but the decrement doesn't. I get '12' instead of '24'.
If I edit this: endLetter = token.charAt(array.length -1);
                    endLetterString = Character.toString(endLetter);
                    if((endLetterString.equalsIgnoreCase("e") && (wordSyllable > 1)))
                    numberOfSyllables--;
               }To this:endLetter = token.charAt(array.length -1);
                    endLetterString = Character.toString(endLetter);
                    if((endLetterString.equalsIgnoreCase("e") && (wordSyllable != 1)))
                    numberOfSyllables--;
               }I get 30. What gives?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • The counter on ebay doesn't work in real time.

    That's pretty much it in one sentence. I just rebuilt my system. Do I just need to get a newer version? I'm running windows 7 now too.
    Thanks

    I have had the same problem repeatedly - the forums are filled with similar comments - there is clearly a problem and it would appear Verizon doesn't care enough to fix it.   
    frankenheim wrote:
    I've set Do not Disturb schedule several times over the week. Also had discussion with tech support verifying I was doing everything correctly. The system will not stay with the schedule for the day. It simply blocks all incoming calls when its activated, 24 hours. 
    I had set it to block 7-9am daily but when you check call log it clearly shows calls blocked all day. 
    I've seen this same issue with others on the community chat site, so there is clearly a system error issue. 
    Please let someone at Verizon that can fix this issue know about the problem. 

  • PreparedStatement.setString doesn't work with Oracle 10g.

    Hi all,
    I newbie question regarding the method setString of class java.sql.PreparedStatement. My process require to pass throught a file and check agaisnt a Oracle table if the product id of the given record exist in the table .
    I use the SQL
    select matnr from zncorart_ap where zartleg = ? and zentrleg = ?
    to do that. When i try to replace the ? with the setString method it doesn't work and the query always return no row as ? is not a valid value.
    Thx for your help.
    // Here code snippet of the caller class
    public class Inventory2SAP {
    private ETLSQL productXRef;
    private ResultSet productXRefResult;
    private String inRecord;
    private String prdCat;
    protected void acquireResource() {
      try {       
    //  Instantiate product XRef object.
        productXRef = new ETLSQL();
        productXRef.loadDriver(ch.getProperties("Inventory2SAP.JDBCDriver"));
        productXRef.connectDB(true);
        prdXRefLookup = "select matnr from zncorart_ap where zartleg = ? and zentrleg = ?";
        productXRef.createPrepared(prdXRefLookup);
      catch (SQLException sqle) {
        sqle.printStackTrace();
        System.exit(-1);            
    // Loop this method until EOF        
    protected boolean transform() {
       try {
          productXRef.setString(1, inRecord.substring(0, 8));
          productXRef.setString(2, prdCat);       
          productXRefResult = productXRef.executePrepared();
          if (productXRefResult.next()) {
             System.out.println("Nerver branch here because setString doesn't work");
          else {
             System.out.println("Always row not found");
       catch (SQLException sqle) {
          sqle.printStackTrace();
          System.exit(-1);
    protected void releaseResource() {
       try {
          productXRef.disconnectDB();
       catch (SQLException sqle) {
          sqle.printStackTrace();
          System.exit(-1);
    public class ETLSQL {
        private static Connection con;
        private PreparedStatement pstm;
        private ResultSet rs;
        protected ETLSQL() {
        protected void loadDriver(String driverID) {
           try {
              if (driverID.equals("oracle")) {
                 Class.forName(ch.getProperties("OracleDriver")).newInstance();
           catch(ClassNotFoundException cnfe) {
              cnfe.printStackTrace();
              System.exit(-1);                  
          catch (InstantiationException ie) {
             ie.printStackTrace();
             System.exit(-1);  
          catch (IllegalAccessException iae) {
              iae.printStackTrace();
             System.exit(-1);               
    protected void connectDB(boolean isReadOnly) throws SQLException {
       if (driverID.equals("oracle")) {
          con = DriverManager.getConnection(ch.getProperties("OracleURL"),
          ch.getProperties("OracleUser"), ch.getProperties("OraclePassword"));         
        else {
           System.out.println("Can't connect to the Database");
           System.exit(-1);                
    protected void createPrepared(String SQLString) throws SQLException {
       pstm = con.prepareStatement(SQLString);
    protected void setString(int pos, String s) throws SQLException {
       pstm.setString(pos, s);
    protected ResultSet executePrepared() throws SQLException {
       rs  = pstm.executeQuery();
       return rs;
    protected void disconnectDB() throws SQLException {
       if (pstm != null) {
          pstm.close();     
       if (!con.isClosed()) {
          con.close();
    }

    Ever solve this problem? Seems I'm having the same problem. I'm at a bit of a loss.
    **** Specifically, I get this
    Jan 23, 2007 12:49:51 PM test.JdbcTestHarness doItGood
    INFO: ======= doItGood =======
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItGood
    INFO: It worked...my name is mvalerio
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItBad
    INFO: ======= doItBad =======
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItBad
    INFO: It didn't work my name is mud
    **** When I do this
    package test;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class JdbcTestHarness {
         private Logger logger = null;
         * @param args
         public static void main(String[] args) {
              JdbcTestHarness jdbcTest = new JdbcTestHarness();
              jdbcTest.doItGood();
              jdbcTest.doItBad();
         public JdbcTestHarness() {
              this.logger = Logger.getLogger("test");
         public void doItGood() {
              logger.log(Level.INFO, "======= doItGood =======");
              Connection conn = null;
              PreparedStatement stmt = null;
              ResultSet rs = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection(
                             "jdbc:oracle:thin:@db1-dev.lis.state.oh.us:2521:test",
                             "dir", "dir");
                   stmt = conn
                             .prepareStatement("select username,password,'true' from account where account.username = 'mvalerio'");
                   rs = stmt.executeQuery();
                   if (rs.next()) {
                        this.logger.log(Level.INFO, "It worked...my name is "
                                  + rs.getString(1));
                   } else {
                        this.logger.log(Level.INFO, "It didn't work my name is mud");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally {
                   if (conn != null) {
                        try {
                             conn.close();
                        } catch (SQLException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
         public void doItBad() {
              logger.log(Level.INFO, "======= doItBad =======");
              Connection conn = null;
              PreparedStatement stmt = null;
              ResultSet rs = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection(
                             "jdbc:oracle:thin:@db1-dev.lis.state.oh.us:2521:test",
                             "dir", "dir");
                   stmt = conn
                             .prepareStatement("select username,password from account where account.username = ? ");
                   stmt.setString(1, "mvalerio");
                   rs = stmt.executeQuery();
                   if (rs.next()) {
                        this.logger.log(Level.INFO, "It worked...my name is "
                                  + rs.getString(1));
                   } else {
                        this.logger.log(Level.INFO, "It didn't work my name is mud");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally {
                   if (conn != null) {
                        try {
                             conn.close();
                        } catch (SQLException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    Any help would be appriciated.......

  • SetQueryTimeout doesn't work on OracleCallableStatement

    All,
    I have a multithreaded (Orbix-2000 2.0 thread pool) server (Win 2K, JDBC 8.1.7, classes12.zip, Sun JDK 1.3.1) that queries a Oracle 8.1.7.2.7 server (Win 2K AS). I use the OracleConnectionCache.
    The method setQueryTimeout doesn't work on OracleCallableStatement. No timeout ever occurs, e.g., setting a value > 0 has the same effect as 0.
    I have seen multiple posts of other people with somewhat similar problems, but no solution. Is there one?
    Martin
    P.S. In case it matters: I have Cursors as out parameters of the PL/SQL stored procedure.

    u can try reinstalling it

  • Frequency divide by N doesn't work on Counter-Ti​mer PCI-6602

    Hello everybody,
    I tried to do something basic ( ?) with this Counter-Timer 6602 Board, and it doesn’t work.
    So I hope some people with more experience than me could understand what happens here.
    1) What I need:
    I need to generate 4 synchonised clocks, whose periods will be multiple of 1 ms.
    2) What I have:
    LabVIEW 7.0 and a PCI-6602 Counter-Timer Board in a DELL PC running under XP pro.
    The PCI-6602 Counter-Timer Board has 8 counter timers named CTR 0, CTR 1, ... CTR7.
    3) What I have already done, and that worked:
    - Generate a 1 kHz “Master Clock” signal from CTR 4, configured by “Continuous Pulse Generator Config.vi” (found in “Data Acquisition, Counters...).
    - configure CTR 0 and CTR 1 to work as frequency dividers, by use of “Down Counter or Divider Config.vi”.
    - Apply the output signal of CTR 4 (OUT ) to the SOURCE inputs of CTR 0 and CTR 1 by means of physical wiring in the SCB-68 connection box.
    When I do this, I get two nice secondary clock signals on my oscilloscope screen, ( with periods = 3 ms, or 5 ms or whatever multiples of 1 ms I choose) from CTR 0 and CTR 1 outputs , very clean and perfectly in phase with the 1 kHz Master Clock.
    So far, so good...
    But I still need 2 more secondary clocks...
    One would say: “No problem, do the same trick with two other counters...” Well, not so simple, it seems...
    4) What I tried to do, and that didn’t work:
    When I try to do the same frequency division with any of the remaining counters, (CTR2 to CTR7), the program stops and I get an error “ –10020 : Time base not valid “.
    I can’t figure out what happens here: I thought any counter could be configured to work as a frequency divider, but it seems not to be so, and I am stuck here.
    Has anyone an idea about how to fix this type of problem?
    Attached file: hor_div02New.vi
    Attachments:
    hor_div02New.vi ‏123 KB

    karolik,
    I'm just adding a followup in English. As Marc L. mentioned, the particular vi named "Down Counter or Divider Config" isn't compatible with the 6602. While the 6602 does have the ability to generate 4 synchronized clocks, a different syntax is needed. Here's how I'd do it:
    Traditional NI-DAQ
    1. Configure a continuous pulsetrain on CTR 4. Route its output to, say, RTSI 4. Don't start it yet.
    2. Configure CTR 0,1,2,3 for continuous pulsetrains using RTSI 4 as their "timebase source." Start them.
    3. Start the CTR 4 pulsetrain.
    4. Now CTR's 0-3 should generate separate clocks with synchronized phasing.
    DAQmx
    1. Configure a continuous pulsetrain on CTR 4. Don't start it yet.
    2. Configure CTR 0,1,2,3 for continuous pulsetrains using "Ticks" for units. Use a DAQmx property node (probably Channel property node, but am not 100% sure and don't have a LV PC handy to check) to specify that the "ctr4 internal output" should be used as the timebase. Start them.
    3. Start the CTR 4 pulsetrain.
    4. Now CTR's 0-3 should generate separate clocks with synchronized phasing.
    -Kevin P.

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • LVOOP "call parent method" doesn't work when used in sibling VI

    It seems to me that the "call parent method" doesn't work properly according to the description given in the LabVIEW help.
    I have two basic OOP functions I am doing examples for. I can get one to work easily and the other one is impossible.
    Background
    There are 3 basic situations in which you could use the "call parent method"
    You are calling the parent VI (or method) of a child VI from within the child VI
    You are calling the parent VI (or method) of a child VI from within a sibling VI
    You are calling the parent VI (or method) of a child VI from a different class/object.
    From the LabVIEW help system for "call parent method":
    Calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI
    From my reading of that it means situation 3 is not supported but 1 & 2 should be.
    Unfortunately only Situation 1 works in LabVIEW 2012.
    Here is what I want
    And this is what I actually get
    What this means is that I can perform a classic "Extend Method" where a child VI will use the parent's implementation to augment it's functions BUT I cannot perform a "Revert Method" where I call the parent method's implementation rather than the one that belongs to the object.
    If you want a picture
    Any time I try and make operation2 the VI with the "call parent method" it shows up for about 1/2 sec and then turns into operation.
    So there are only 3 possibilities I can see
    Bug
    Neither situation 2 or 3 are intended to work (see above) and the help is misleading
    I just don't know what I am doing (and I am willing to accept this if someone can explain it to me)
    The downside is that if situation 2 above doesn't work it does make the "call parent node" much less usefull AND it's usage/application just doesn't make sense. You cannot just drop the "call parent node" on a diagram, it only works if you have an existing VI and you perform a replace. If you can only perform situation 1 (see above) then you should just drop the "call parent node" and it picks up the correct VI as there is only 1 option. Basically if situation 2 is not intended to work then the way you apply "call parent method" doesn't make sense.
    Attachements:
    For the really keen I have included 2 zip files
    One is the "Revert Method labVIEW project" which is of course not working properly because it wants to "call parent method" on operation not operation2
    The other zip file is all pictures with a PIN for both "Revert Method" and "Extend Method" so you can see the subtle but important differences and pictrures of the relavant block diagrams including what NI suggested to me as the original fix for this problem but wasn't (they were suggesting I implement Extend Method).
     If you are wondering where I got the names, concepts and PIN diagrams from see:
    Elemental Design Patterns
    By: Jason McColm Smith
    Publisher: Addison-Wesley Professional
    Pub. Date: March 28, 2012
    Print ISBN-10: 0-321-71192-0
    Print ISBN-13: 978-0-321-71192-2
    Web ISBN-10: 0-321-71255-2
    Web ISBN-13: 978-0-321-71255-4
     All the best
    David
    Attachments:
    Call parent node fault.zip ‏356 KB
    Call parent node fault.zip ‏356 KB

    Hi tst,
    Thankyou for your reply. Can you have a look at my comments below on the points you make.
    1) Have to disagree on that one. The help is unfortunately not clear. The part you quote in your reply only indicates that the VI you are applying "Call Parent Node" to must be dynamic dispatch. There is nowhere in the help it actually states that the call parent node applies to the VI of the block diagram it is placed into. Basically case 2 in my example fulfills all that the help file requires of it. The dynamic dispatch VI's operation are part of a class that inherits from a given ancestor. Operation 2 for Reverted behaviour is a child VI that is dynamic dispatch and has the same name as the ancestor VI (operation2). The help is missing one important piece of information and should be corrected.
    2) True it does work this way. I was trying to build case 2 and had not yet built my ancestor DD for operation so the function dropped but wasn't associated with any VI. I was able to do this via a replace (obviously once the ancestor Vi was built) so this one is just bad operator
    3) Keep in mind this is an example not my end goal. I have a child implementation because this is a case where I am trying to do a "reverse override" if you like.
    3a) The point of the example is to override an objects method (operation2) with it's parent's method NOT it's own. The reason there is a child implementation with specific code is to prove that the parent method is called not the one that relates to the object (child's VI). If I start having to put case structures into the child VI I make the child VI have to determine which code to execute. The point of Revert method is to take this function out of the method that is doing the work. (Single Use Principal and encapsulation)
    3b) The VI I am calling is a Dynamic Dispatch VI. That means if I drop the superclass's VI onto the child's block diagram it will become the child's implementation. Basically I can't use Dynamic Dispatch in this case at all. It would have to be static. That then means I have to put in additional logic unless there is some way to force a VI to use a particular version of a DD VI (which I can't seem to find).
    Additional Background
    One of the uses for "Revert Method" is in versioning.
    I have a parent Version1 implementation of something and a child Version2. The child uses Version2 BUT if it fails the error trapping performs a call to Version1.
    LabVIEW has the possibility of handling the scenario but only if both Case 1 and Case 2 work. It would actually be more useful if all 3 cases worked.
    The advantage of the call parent method moving one up the tree means I don't have the track what my current object is and choose from a possible list, if, for example the hierarchy is maybe 5 levels deep. (so V4 calls V3 with a simple application of "call parent method" rather than doing additional plumbing with case structures that require care and feeding). Basically the sort of thing OOP is meant to help reduce. Anything that doesn't allow case 2 or 3 means you have to work around the limitation from a software design perspective.
    If at the end of the day Case 2 and case 3 don't and won't ever work then the help file entry needs to be fixed.
    All the best
    David

  • Count(*) in the loop doesn't work and I really don't know why...

    Hello,
    I can't figure out why the following doesn't work. I cannot debug for I do not have privileges on this server.
    The execution always fails on bolded line. If I substitute the variable with the table name itself it works. The variable is properly populated in each of the iterations as I can see it by using dbms_output package. The small but may be important detail may be I am connected as user A but the tables are in the schema B. However I can list the tables and their columns in all_tab_cols view and there are synonyms made in my schema which allow me to access the B tables without prefixing them.
    I get the error:
    Error report:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 26
    00900. 00000 - "invalid SQL statement"
    *Cause:   
    *Action:
    I ran out of ideas and I do not have access to any of the Oracle instance to be able to debug right now.
    Variable type for v_tables is wrong? I do not have some magic privilege to use execute immediate with variable?
    Oracle server has a bad day today?
    The crap is 11.1.0.7 if it has anything to do with my problem.
    Please help if you can.
    Grzegorz
    declare
    v_number number := 646989;
    v_current_table nvarchar2(50);
    v_itemno number;
    type t is table of nvarchar2(50);
    v_tables t;
    begin
    dbms_output.put_line('Working...');
    select table_name bulk collect into v_tables from all_tab_cols where column_name = 'ITEMNO' order by table_name;
    for i in 1 .. v_tables.count loop
    dbms_output.put_line('Number: ' || i);
    v_current_table := v_tables(i);
    <b>execute immediate 'select count(*) from ' || v_current_table || ' where itemno = :a' into v_itemno using v_number;</b>
    if (v_itemno > 0) then
    dbms_output.put_line('Current table contains specific ITEMNO: ' || v_current_table);
    end if;
    end loop;
    end;

    In SQL Plus run this and see what SQL is your code returning. Then execute the SQL individually.
    set serveroutput on
    declare
         v_number number := 646989;
         v_current_table nvarchar2(50);
         v_itemno number;
         type t is table of nvarchar2(50);
         v_tables t;
         lSqlString varchar2(20000);
    begin
         select table_name
           bulk collect into v_tables
           from all_tab_cols
          where column_name = 'ITEMNO'
          order by table_name;
         for i in 1 .. v_tables.count loop
              v_current_table := v_tables(i);
              lSqlString := 'select count(*) from ' || v_current_table || ' where itemno = :a';
              dbms_output.put_line(lSqlString);
              --execute immediate  lSqlString into v_itemno using v_number;
         end loop;
    end;

  • I updated my iphone 5 to ios 6.0.2. my wifi says its connected but doesn't work now. It doesn't matter what wifi network I connect to. It worked before updating my phone. I can no longer use facetime or use wifi at all. I'm not sure what to do to fix it.

    I updated my iphone 5 to ios 6.0.2. my wifi says its connected but doesn't work now. It doesn't matter what wifi network I connect to. It worked before updating my phone. I can no longer use facetime or use wifi at all. I'm not sure what to do to fix it.

    I'm having similar issues with my phone.  I got my first iPhone recently, only had an iPod touch gen4 for a little over a year.  Updated to 6.0.2 when we got the phone (iPhone 5) a few days before Christmas.  When I got home on the evening of January 11, my phone would not connect the router anymore.  I was able to get it to connect after resetting the phone and the router, updating the router, and manually connecting.  That laste for a few minutes and then wouldn't work anymore.   I live in an area with very limited service, we have a network extender installed to help, and I am barely getting a 3G signal at times.
    My wife's iPad 4, my touchiPod 4, and all of our laptops are working just fine on the router.  When I dropped my kid off at school today, I noticed that I am not even seeing the school network anymore from the parking lot where before I got 3 or 4 bars and could connect to their wifi when I was there.  Today my phone goes back and forth between seeing my home network but not connecting, to not even seeing the network at all even from the same room that the router is in.
    Hope Apple fixes this problem soon..............

  • My Ipad2 won't turn off.  I've tried the reset method,  holding both buttons down for at least 10 seconds, but this doesn't work. I'm on version 5.1.1 and all other functions work except that I cannot get onto the internet via wi-fi either.  Help ??

    My Ipad2 won't turn off.  I have tried the reset method by holding both buttons down for at least 10 seconds, but this doesn't work.  I can't get onto the internet via wi-fi either (don't have a 3G card fitted).  All other functions seem to be working OK including charging. Not had this problem before, but I recently upgraded software to 5.1.1 so is there a bug in there somewhere?

    Look at last link.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130?tstart=60
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Central Autoreaction Method doesn't work for NW 7.10 in SolMan 7.01

    Hello!
    The central autoreaction method doesn't work for the satellite system
    NW 7.10. For systems with kernel releases 4.6D, 640, 700 this method
    works fine and e-mail alerts are coming.
    The configuration steps I've checked:
    1. Configured SCOT. The mail_send job executes every 5 minutes.
    2. Background dispatching job is released: SAP_CCMS_MONI_BATCH_DP (In
    central CEN/000/DDIC and satellite system SAT/000/DDIC)
    3. Central dispatching job is released: SAP_CCMS_CENSYS_DISPATCHER
    (Only in central system CEN/000/DDIC)
    4. The sapccm4x-agent registered as web service within CEN using
    Create Remote Monitoring for NW 7.10:
    Connection test to SAPCCM4X.<satellite_host>.00 was performed successfully
    5. Created a new autoreaction method by copying method
    CCMS_OnAlert_Email_V2 to the own Z_CCMS_Email_Alert_CEN:
    Function Module - SALO_EMAIL_IN_CASE_OF_ALERT_V2
    Execute Method on Any Server and Only in Central System, triggered by
    CCMS agents
    SENDER (EMAIL_USER) exists in CEN/000 , RECEPIENT - <distr list
    SAP_BASIS in CEN/000>, RECIPIENT-TYPEID - C
    6. Got MTE Classes from NW 7.10 satellite system and assigned this method
    Z_CCMS_Email_Alert_CEN to an MTE-class CCMS_ORAucPSAPSR3 for NW 7.10
    satellite system. The alert is red right now.
    7. The mail_send job doesn't send anything, in SCOT there are no
    sending orders.
    8. Autoreaction status on this alert in CEN in RZ20 - Sent to CEN.
    CEN_CHECKED.
    9. The alert status in RZ20 in CEN - ACTION_REQUIRED. If I execute it
    in manual the alert status changes to ACTIVE, but no email and no
    messages in sending orders in SCOT.
    Please help me to solve this issue.
    Thank you!

    Hi,
    Since you are using RECIPIENT-TYPEID =C i.e. General distribution list, pls ensure to have shared type of list created in SBWP.
    Also pls verify your SCOT configutaion , if apropriate address area i.e. *@abc.com
    Also one point to note that even if you trigger auto reaction method manually via RZ20 , pls check if alert is listed in SOST.
    if yes , that means there is problem in either SCOT configuration or distribution list.
    If alert is not appearing in SOST , that means you need to check auto reaction method parameters;
    Z_CCMS_OnAlert_Email_V2 , here check release section if Auto reaction execution method is checked.
    Regards,
    Rupali

  • The camera on my daughter's iPod Touch, 5th generation, doesn't work anymore. She just got it three weeks ago. Not even sure how to troubleshoot. Help.

    the camera on my daughter's iPod Touch, 5th generation, doesn't work anymore. She just got it three weeks ago. Not even sure how to troubleshoot. Help.

    Hard reset it and report back...thatll probably solve the problem

  • My mini Ipad says I haven't backed it up to iCloud for 2 weeks.  Back ups happen when this ipad is plugged in, locks, and connected to wifi.  The ok button doesn't work, I can't open settings to make sure wifi is connected. Nothing works!!!

    My mini Ipad says:   I haven't backed it up to iCloud for 2 weeks.  Back ups happen when this ipad is plugged in, locks, and connected to wifi. 
    The ok button doesn't work, I can't open settings to make sure wifi is connected. Nothing works!!!  I have it pluggled into my computer but apparently it isn't backing up since nothing has changed.  it is unuseable!

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • My Help Viewer doesn't work properly-The selected topic is currently unavailable Make sure you're connected to the Internet. For help connecting, choose Apple menu System Preferences, click Network, and click "Assist me." If you're connected to the Inte

     

    Sometimes just closing and reopening the Help window will clear up the problem. If it doesn't, log out or restart the computer and try again. Otherwise, you may need to delete the Help cache.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Caches/com.apple.helpd
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A Finder window should open with a folder selected. Move the selected folder to the Trash. Log out, log back in, and test. Help pages will be slow to load at first.
    If that doesn't work, the problem may be caused by network conditions. It may go away by itself, though I can't say how long you should wait.
    A persistent failure to load help data has been reported as an issue with satellite networks. Test on a different network, if possible. I've also seen at least one report that Photo Stream in iCloud can mysteriously interfere with Help. I'm not sure whether that's true, but try disabling Photo Stream, if applicable.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combinationcommand-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • Converting Object to a Date

    Hey guys some one help me out.. 1) How to convert Object to Date and 2) Date to a String in a specified format like "MM : DDD : YYYY". Thanks in Advance :-)

  • VBRP does't have the PROFIT CENTRE FIELD

    Hi Gurus, Hi Gurus I  am fetching the billing(commision, credit notes ) from vbrp, based on profit centre, controlling area and date. but some where in vbrp profit centre field having no value. Actually this report is FICO  but commission ,credit not

  • Mastromike

    adding a submit button to a form

  • Trip reimbursement and travel expense deduction

    Hi all, we need detailed info about trips before these trips are setteled (esp. vpfps and vpfpa are of interest). Therefore i tried to submit report rprtec00 with option "export list to memory". if i import information afterwards from database pcl1 n

  • Acrobat Pro 8 quits unexpectedly shortly after starting

    I've used Acrobat Professional 8.3.1 for a number of years with no problems. Recently, though, it has begun quitting unexpectedly about 10 seconds or so after starting. The following information may or may not be relevant. Other Adobe products I'm ru