Re-Use of cursor pointer in the Cursor loop

Is it possible to re-use a Cursor pointer as a cursor pointer within the main cursor loop. We have a scenario like
FOR c1 IN cursor1 LOOP
     FOR c1 IN cursor2 LOOP
     END LOOP;
END LOOP;
The code seems to work and gives correct result 75% of times and giving wrong result 25% times, even though we are using the same data every time.

This is an existing piece of code, and we are actually trying to investigate why the program is giving incorrect results only sometimes and not always, even when we use the same set of data. This appeared to be the only logical error we could find.
We are using the variable of the first loop inside the second one, which I understand the code shouldn't be doing. But then, I would expect the result to be consistently wrong, which they are not and this is what surprises me. Could it be that the Oracle is not able to handle this properly?

Similar Messages

  • Applescript to get the current insertion point of the cursor

    How do I use Applescript to get the current insertion point of the cursor in a Apple pages.app document?

    Oops, missed that one - you are correct, the line should be:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">set {TheStart, TheEnd} to character range of the selection</pre>
    I have a wrapper script that I use to insert stuff from my handler/code library into a Script Editor document, and was adapting snippets from that for my examples - I guess that one got away.
    As for the dictionary, some applications just have poorly written or outdated documentation. Some of the items have multiple entries (eg, there may be a selection object for the application and also for the document), and some inherit properties from other items. Some are used as nouns, others as verbs (or both). Sometimes it is easier to visualize the item by keeping track of it's reference - the 'some property of document 1 of the current application' thing. You can use the Script Editor's Event Log to see the results of various properties and commands - for example, the above script will result in the following entry (your numbers will vary depending on the selected text):
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">tell current application
    get character range of selection
    {50, 50}
    end tell
    </pre>
    You can also use the 'log' statement (eg, 'log MyVariable') to add your own entries into the log instead of using dialog boxes.

  • While using email why won't the cursor drop down into the compose area of the email

    While using my default browser firefox, I am unable to type in the "compose" section. I can type the address I want to send to and the subject but after that my cursor will not show up in the compose section. The cursor just will not go there.
    If I change and use explorer I don't have this problem. I do not want to use explorer so please help me if you can

    Can you use the tab key too reach that text area?
    What element gets selected if you right-click that compose section and select Inspect Element to open the Inspector?
    *https://developer.mozilla.org/Tools/Page_Inspector

  • Is there a way to hide the cursor or change the cursor to a hand?

    Hi,
    I think the title is self explanatory. The reason I want to do it is because I'm developing a touchscreen interface and I reckon it would look better if I had a hand instead of a cursor or if I got rid of the cursor completely.
    Cheers,
    elmicko

    Yeah theres a way.
    Use method
    setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    ciao

  • How to use 10 touch points at the same time ?

    I want to project game which use about 10 touch points? How can I use all of them at the same time ?
    Please give me a sample code.

    Firstly you must know how many touch points can accept your device. For example iPad and iPhone can't handle more than 5.
    1. Enable touch input mode by
    Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
    2. Use same method as for mouse input but instead use TouchEvent API

  • On HTC Desire with the HTC android 2.2 (froyo) rom, when typing a number or a punctuation sign using a long key press, the cursor stay in place instead of advancing and positioning itself at the end of what you type.

    Tested on login and password field (in sync settings). Other text input doesn't look like they have this problem. But I haven't run extensive tests.
    Well when I was trying to register my self in sync I came across this issue. This can be solved by flipping the phone on landscape mode.

    Thanks for the report! We were not aware of this problem before, but we will investigate it and work on fixing it.

  • Why should i use only 16 points in the sixteen-point garbage matte ?

    in some cases i need more than 30 points to cover all the frame

    You need to update your version of Premiere.

  • I am frustrated with how my cursor jumps around while typing.  How can I make the arrow follow the cursor so this doesn't happen?

    Macbook Pro with OSX Yosemite:  I am frustrated that when using Word for Mac, the cursor keeps jumping around all over the page.  How can I make the pointer follow the cursor so this stops?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How can I change the numeric format of the cursor coordinates display in LV 8.2

    Since LV 8.0 or so the cursor display window of a graph indicator seems to be a tree control. I couldn't find where to change the numeric format of the numbers displayed in that control. What did I miss?

    lecroy wrote:
    Maybe I'm not clear on what your looking for but I just use a property node and route the raw cursor data out to what ever function I want to run on it, then display it in a seperate field.  The nice thing with the property node is you can have multiple graphs linked together by one set of cursors all with different readouts. 
    Yes, of course that's an option and I guess I'll have to do it that way.
    The point is that I converted a pre-LV-8.x program to LV 8.5. In the program I had used the coordinates display field in the cursor legend to display the position, just the was the cursor legend is supposed to be used, IMO. And in pre-LV-8.x days it was possible to customize the numeric format property of the cursor legend (either directly or by property nodes). It seems that with LV 8.x NI chose to use a treeview control for the cursor legend. With that 'improvement' the numeric formatting flexibility was lost since now the conversion to the string content in the cursor legend's treeview is happening somewhere 'under the hood'.
    <rant> Why do they (NI) always try to 'improve' things (where nothing needs be improved) and sacrifice functionality on the way....? </rant>

  • Position Cursor on GRAPH either by dragging it OR entering the dsired position in the Cursor legend

    I've written a VI that allows the user to import a dataset, view it on a graph, and then use cursors to "filter" the range of data that I'm interested in, by sending the cursor.index values from the first graph to an array subset function which feeds a second graph.  The problem is that I'd like to provide the user the ability to position the cursors on the first graph both visually - by dragging - (for "course" control) AND by entering the desired values directly into the cursor legend (for fine control).  The problem is that I cannot find a way to do this, since I have to have the Lock Ring set to “Lock to Plot” in order to capture the index information. According to the documentation, the only way to be able to position the cursors via the Cursor legend is to set the Lock Ring to “Free”, which means the index values are rendered useless, since the cursor is no longer locked to the plot.  If I leave the Lock Ring in "Lock to Plot", and enter a value in the cursor legend, it does move the cursor, but not to where it should.  If I enter a value an x value of 9.0 for cursor 1, the cursor goes to 10.2638.  The next time I enter 9.0, it goes to 9.82794.  I don't understand what the issue is.  Is there a way around this?
    Attachments:
    ppv data filter 3.vi ‏366 KB

    Yes Rudi:  What I want is for the operator to place the cursors by dragging them (just eye-balling it).  The, if they see that the Y cursor (horizontal) is at 10.234, and they want to make it 10, they could simply enter that value in the cursor legend, and the cursor would be placed exactly at 10.  The only way to do this seems to be to select the “Free” option for the cursor.  However, in order to use the first graph to set the boundaries of the second graph, I have to use the Cursor Index from the first as an input to the Array Subset that feeds the second graph.  In order to use the Cursor Index, the first graph has to have its cursor Lock Rings set to “Lock to Plot”.  Am I making this any more understandable, or just rambling?

  • How to control the cursor location(without mouse control)??

    Hi,
    I am now developing a swing application which need to use a thread to change the cursor location.
    Can the cursor location be controlled by a thread?
    thank

    can be done using class Robot

  • Why is the cursor jumping down to a different field?

    I am working in Acrobat Pro 9. I actually have two slightly different senerios.
    First: I have two Textbox fields in my document that are named the same so that the second will auto-fill when the first is filled in. They are set to mm/dd/yyyy.
    When the first is filled out without using the /'s, an error appears that the user did not use the proper format. When I click the button on the error window, my cursor is sent to the second textbox instead of remaining in the first.
    Secondly: This is a similar problem.....Again I have two textboxes that have the same name...for the same reason. I have javascript attached to the first that will display an error if it is left blank and then uses a setFocus() to place the cursor back into the textbox. When the first textbox is left blank and triggers the error, the cursor is then forced to the second textbox of the same name.
    Does anyone know what I need to do in order to have the cursor remain in the first textbox?
    Thank you for any help that you can give.
    Rick

    For your first question, I think that's normal, though I suppose it could be considered a bug. The focus gets set to the first widget (#0).
    For #2, when you use the getField method, you can specify a particular widget. For example, if you have two widgets of a field named "text1", you can do:
    // Set focus to first widget (#0)
    getField("text1.0").setFocus();
    // Set focus to second widget (#1)
    getField("text1.1").setFocus();

  • How to programmatically move the cursor to the "To" field of a new AppointmentItem?

    I need to move the cursor to the "To" field of all new AppointmentItems which are created through my Outlook Addin. How I can achieve this?
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    The Outlook object model doesn't provide anything for that. You need to use Windows API functions or use
    Accessibility API to set the cursor programmatically.

  • How to find the cursor on the screen?

    On a PC, I could set it up so that if I could not readily see the location of the cursor on the screen I would just touch the CTRL key and a big moving circle would appear to point out the cursor location.  What is the equivalent trick on iMac?
    -new to Imacs

    You can adjust the size of the cursor here - System Preferences > Universal Access > Mouse, near the bottom of that window. However, this is not a temporary size change - it will stay the new size until you change it again.
    For a temporary (on demand) locator, try something like Mouse Locator -
    http://mac-free.com/download/Mouse-Locator.html

  • Is there a Shortcut key to move a window with the cursor?

    After Yosemite it seems that the area at the top of windows shrunk and I have to look for a vacant spot to grab the window and move it around the desktop.  Is there a short cut key that you can enter and move a window using the cursor from wherever the cursor is on a window?

    Sorry, no. Only way to move the window is to place the cursor between the address box and icons on the left or right of the address box and grab.
    Best.

Maybe you are looking for