Questions tagged [cursor]

DO NOT USE. This tag is ambiguous. For database cursors (that let you traverse records), use the [database-cursor] tag. For mouse cursors (onscreen pointer to let you know where the mouse is), use [mouse-cursor]. For text-cursors (blinking vertical bar to let you know where text will be input), use [caret].

cursor can mean many things, and it is recommended to use more specific tags.

  • For database cursors (that let you traverse records), it is better to use .
  • For mouse cursors (onscreen pointer to let you know where the mouse is), it is better to use .
  • For text-cursors (blinking vertical bar to let you know where text will be input), it is better to use .

For the database concept, quoting from the wikipedia page:

In computer science and technology, a database cursor is a control structure that enables traversal over the records in a database. Cursors facilitate subsequent processing in conjunction with the traversal, such as retrieval, addition and removal of database records. The database cursor characteristic of traversal makes cursors akin to the programming language concept of iterator.

Cursors are used by database programmers to process individual rows returned by database system queries. Cursors enable manipulation of whole result sets at once—a capability that most procedural programming languages lack. In this scenario, a cursor enables the rows in a result-set to be processed sequentially.

And for the user-interface concept, again from the wikipedia page:

In computing, a cursor is an indicator used to show the position on a computer monitor or other display device that will respond to input from a text input or pointing device. The flashing text cursor may be referred to as a caret in some cases.

6975 questions
4
votes
1 answer

How can I get Uri of a private Folder in Android?

I am trying to make an android camera app with image gallery. The images captured are saved to a private directory: Android/data/com.example.newcamera/files/pictures. Whenever I am using INTERNAL_CONTENT_URI or, EXTERNAL_CONTENT_URI as Uri, The app…
kcpaul
  • 41
  • 5
3
votes
2 answers

How to get phone number from person name which are in my contact list in android

I want to get phone no of the person from his name which are in my contact list. i have used the below code but it is not working fine. Tell me where i am wrong. try { cursor_company…
Naresh Sharma
  • 4,323
  • 7
  • 48
  • 68
3
votes
1 answer

Why do I error out when trying to retrieve a result set with DotConnect components?

With the code below I get, "ORA-01036: illegal variable name/number" on the call to ExecuteReader: cmd.Parameters.Add("cur", Devart.Data.Oracle.OracleDbType.Cursor); cmd.Parameters["cur"].Direction =…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
3
votes
1 answer

Custom Cursor Icon is loaded with an extra shaded pixel

I changed the cursor Icon whenever a certain toggle button is clicked. But the loaded image contains an extra pixel in it at the bottom corner! It's annoying, like there's constant dirt on the screen. I created the cursor icon using junior icon…
Dezrik
  • 169
  • 1
  • 8
3
votes
3 answers

MongoDB cursor in PHP, does it bring all records to the client upon query execution or one by one upon cursor iteration?

I would like to optimize my queries with MongoDB, and I was wondering how does the PHP client protocol work with the cursor returning from find() query, does it bring large chunks of the results to the client side or fetches a single record at a…
Avi Kapuya
  • 1,050
  • 1
  • 11
  • 18
3
votes
4 answers

ListView doesn't refresh after using changeCursor() on its adapter

I'm using a database, and there's a list fragment which use a cursor adapter to I get by querying the databse in a loader. When the user press a list view item long press, he sees a context menu and a option to delete this entry. When he press…
3
votes
2 answers

Could this cursor be optimized or rewritten for optimum performance?

There is a need to update all of our databases on our server and perform the same logic on each one. The databases in question all follow a common naming scheme like CorpDB1, CorpDB2, etc. Instead of creating a SQL Agent Job for each of the…
CheckRaise
  • 550
  • 2
  • 16
3
votes
4 answers

how INSERT works before issuing a COMMIT in Oracle

My question is how oracle treats an INSERT transaction before issuing a COMMIT. While I am doing an INSERT transaction, will oracle wait until I have inserted all my records within that procedure and then when I issue a COMMIT statement will the…
user547453
  • 1,035
  • 6
  • 22
  • 38
3
votes
1 answer

Is a cursor thread safe in Android

I have a content provider which is going out to some record sources in the cloud and doing queries, the results are added to a cursor reference that is passed into those classes WebSearch1.addCursor(mContext, cursor, projection,…
Chrispix
  • 17,941
  • 20
  • 62
  • 70
3
votes
1 answer

DBMS_SQL.column value error .. dynamic cursors

I am having troubling figure out error on following code DECLARE CR_QUERY INTEGER; CR_HANDLE INTEGER; V_COL1 VARCHAR2(40); V_COL2 VARCHAR2(18); N_ACTION …
Em Ae
  • 8,167
  • 27
  • 95
  • 162
3
votes
1 answer

Buggy cursor in FireMonkey (Delphi XE2)

Delphi XE2 update 3, Windows 7. I have a memo, it's cursor is crIBeam. But when I move a mouse over the memo the cursor changes to crDefault and back. The swap repeats vary fast. I took a picture with the crDefault cursor but crIBeam must be…
maxfax
  • 4,281
  • 12
  • 74
  • 120
3
votes
3 answers

How to show cursor immediately on app startup?

My app takes a bit to start because the UI is pretty heavy. I want to show Cursors.AppWaiting cursor the moment the user double-clicks on the shortcut. So I pop Cursor.Current = Cursors.AppStarting; into the constructor of the main form. However,…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
3
votes
3 answers

SQL Server 2000 : generating and incrementing data from column conditionally without using CURSOR

:) Is there any way to create an index, and incrementing with a given condition, but without CURSOR handling/usage For example: The condition in my case is that: "if the current color (this is the item to be checked) is the same as the last one:…
crsuarezf
  • 1,201
  • 3
  • 18
  • 33
3
votes
4 answers

Programmatically set "Select objects" cursor in Excel

I'm struggling to find out how to programmatically enable the "Select objects" cursor type. I checked the object browser and expected to find a property like Application.CursorType or Application.DrawingMode. Changing the cursor type isn't picked…
Lunatik
  • 3,838
  • 6
  • 37
  • 52
3
votes
1 answer

Reload ListView animation on cursor change

I have a ListView with an animation. The animation plays well when the ListView is first loaded. I want the animation to replay when I change the cursor.
Noureddine AMRI
  • 2,942
  • 1
  • 21
  • 28
1
2 3
99 100