Most voted "cursor" questions
None
Learn more…51 questions
Sort by count of
-
11
votes4
answers2731
viewsIs it possible to change the mouse cursor color via CSS?
I know it is possible to change the style (type) of the mouse cursor via property cursor in CSS. But, does anyone know if it is possible to change the cursor color? In an application I would like to…
-
10
votes1
answer272
viewsComparison: CTE vs CURSOR
I do not know if this is a question that many ask, but I have always had it in mind almost always. Usually, when I need to deliver a script corrective to a customer, used only to be executed once, I…
-
7
votes1
answer83
viewsHow to use contents of an array to mount the name of a file to be saved?
I’ve tried to use colnames(), names() and nothing works. My data is something like that (however, I have 38,000 names and 38,000 columns): nomes <- c("nome105", "outro.nome_26", "qualquerCoisa")…
-
5
votes2
answers620
viewsHow to smooth a curve and define ylim for a given function using ggplot2?
I got the following graph with the curve function: f1 <- function(x){x^4 - 6*(x^2)} curve(f1, xlim = c(-3, 3), ylim= c(-10, 5), ylab = expression(x^4 - 6*(x^2))) However, I would like to use the…
-
4
votes1
answer128
viewsHow to insert records via cursor?
I need to insert unique records by a field that has the unique identifier, so I’m using cursor; however, the unique identifier does not add according to the inserts. ERROR: You are duplicating and…
-
3
votes1
answer337
viewsSet date inside an Arraylist using Cursor
In a App finance the cursor has no type of getData or getCalendar. What to wear instead? public List<Despesa> getLista() { Cursor c = getWritableDatabase().query(TABELA, COLUNAS, null, null,…
-
3
votes1
answer967
viewsSql server turn a column into multiple rows
Good morning I have a table called books that has 3 fields, Code, Name and Chapters Example of content: 32 - Jonas - 4 i need after select me return the following result Codigo e Capitulo 32 1 32 2…
-
3
votes2
answers615
viewsDoubt with cursor in memo
In my project VCL, I have a TMemo with the following text(| is cursor): | | |Hello world | | | | |test | | | | | When I press on Down button, the cursor moves here: | | |Hello world | || | |test | |…
-
3
votes1
answer178
viewsBug script to delete entire SQL SERVER database
I have the script below to drop EVERYTHING from the database, but in one of the database I have the processing that needs this script happens a bug, for some reason it can not run the first time I…
-
3
votes1
answer31
viewsUse tuple with parentheses in Django query
I made a cursor to get the menus Parent of my application, then I want to iterate each menu Parent and get the menus associated with it. However, when passing the Parent parameter, the second course…
-
2
votes1
answer2608
viewsAssign execute command to a variable
I need the return of the execute command to be assigned to the @PAGO variable because I will insert it into a temporary table only what returns is the script and not the value. DECLARE…
-
2
votes1
answer113
viewsHow to make the cursor be in Text at the beginning of the program?
I would like to know how to blink the cursor on an object tkinter.Text when I walk the application, because usually no widget is selected. I would like to have the same effect as a terminal when it…
-
2
votes0
answers226
viewsCursor stored Mysql precedent
I am inside a cursor that has 10 Rows of result. 2 Rows percentem is a number. example: 1,2 = 1, 3,4 = 2, 5,6 = 6, 7,8 = 9 , 9,10 = 3. How do I add only the values that correspond to the same number…
-
2
votes1
answer364
viewsHow to filter tweets (status) with tweepy (Cursor)
I took from the book "Mastering social media Mining with python" the code below, which saves all a user’s tweets in JSON format. But I would like you to save in json only tweets of a certain date.…
-
2
votes1
answer165
viewsHow to know the direction of the mouse?
I would like to make a program that indicates to which position the mouse is moving (right, left, high, low, right and high, right and low...), but I can’t get a logic that gives me this result.…
-
1
votes2
answers222
viewsProblem of cursor positioning
Logcat is accusing a problem of NullPointerException, but I can’t identify it. From my point of view, it’s right. I know there’s a problem in lines 34 and 39 of ContactRegister that lead to…
-
1
votes1
answer571
viewsProblem with cursor in Mysql
Good afternoon! I am successfully creating the following cursor: declare v_cursor cursor for select idCliente, max(dataVenda) from Cliente left join Venda on idCliente = cliente_idCliente group by…
-
1
votes2
answers179
viewsSet position Cursor Windows & Linux with same code
I’m developing a cross-platform application. For this I would like to develop with the minimum of "ifdefs" possible, and what I need to do is basically a fixed screen of 32 x 16 characters. But for…
-
1
votes1
answer983
viewsException SQL Oracle - Update and Insert
I have a question regarding a precedent that I am making oracle bank. A small explanation for what I am doing: I am reading data from a table, and throwing them on a cursor, after playing on the…
-
1
votes1
answer364
viewsHow to grab the value stored in a column using Cursor?
I have a cursor that receives all data from my table then use the Simplescursoradapter to put in a listview. I was wondering if with this same cursor I could take a die from a Row and put in a…
-
1
votes0
answers344
viewsError Code: 1452. Cannot add or update a Child Row: a Foreign key Constraint fails
I’d like to ask a question, or just show me the way. There is a table called Questionrio from it I take the records in a precedent and organize the data in it. Here is my code: CREATE…
-
1
votes1
answer51
viewsC# - Cursors.Hand.Handle does not identify cursor " Hand "
I made a program to identify if the mouse cursor is Hand or not. I’m using an event that identifies the global cursor, so even outside the Form he is able to identify. The problem is that in the…
-
1
votes2
answers71
viewsError while trying to change cursor during C#algorithm
Hello, I am developing a C# software to help in the scanning of old photos, and in the middle of one of the algorithms to process the images, I want the cursor to change to the loading mode so that…
-
1
votes2
answers144
viewsInner Join Sqlite with Cursor on Android
Good morning guys, could you ask me a question ? How should I make one Inner Join in the SQLite using the Cursor ? Below is my code, but I do not know how to fit it in the line. final SQLiteDatabase…
-
1
votes1
answer1291
viewsDynamic access column oracle cursor
I have a situation where I need to access the attributes of a cursor differently. I have a cursor that returns me a list of records, with columns like col_1, col_nova, col_teste (illustrative…
-
1
votes0
answers423
viewsMysql Trigger with more than one cursor
I have a Trigger where I have 3 cursors, but it only runs correctly one of them(soma_pointo_cursor), the other two run incorrectly, I’ve tried with three separate loops, and it didn’t work either.…
-
1
votes1
answer302
viewsGet cursor coordinates in C#
I’m using the Control.MousePosition to get the mouse coordinates in windows 10. Then use the following function to get a Printscreen: public static Bitmap PrintScreen(Point Source,Point Destination)…
-
1
votes0
answers423
viewsLoop, For, PL/SQL cursors (Doubt)
Good morning Guys, my doubt is the following, my table is so currently: Nome Idade ID João 5 Lucas 5 João 2 Lucas 1 I wish she’d stay that way: Nome Idade ID João 2 1 João 5 2 Lucas 1 1 Lucas 5 2…
-
1
votes1
answer80
viewsListview returns only one Cursor item
Good afternoon guys, I have a problem with my project. I have a Listview that receives information from Cursor and then sends it to the Adapter, but it is only pulling a record from my database, you…
-
1
votes0
answers264
viewsVariable does not receive Subscribe() - Angular 7 data
I’m having a problem in my code. I’m using angular 7, in it I’m having difficulties on a screen I import a file. I want to run a "spinner" that will be shown when I click on "send", it runs Spinner,…
-
1
votes1
answer50
viewsSearching Listview using Edittext and Cursor
Good morning guys, I would need to ask a question. I have an application where I have a ListView that pulls the information from the database, and would like to make a search field in which I am…
-
0
votes1
answer25
viewsProblems with get_blob using Cursor
I saved an image by turning it into a byte array, in a column in the Sqlite data-type byte. When I do a cursor to fetch this image from the bank using the class Cursor and the method get_blob(),…
-
0
votes1
answer106
viewsSubquery returned more than 1 value. This is not permitted when the subquery Follows =, != , <, <= , >, >=
I have a Procedure that sends email with the table data, including the email that will be forwarded,but it is sending to only the 1 record, the second it passes straight, and she is in Loop…
-
0
votes1
answer235
viewsIs it possible to use the same column name as a parameter name on a cursor?
I have the following cursor: -- CÓDIGO OMITIDO DECLARE CURSOR CUR_AULAS(IDTURMA NUMBER) IS SELECT ID, IDCLIENTE FROM AULAS WHERE ATIVO = 1 AND IDTURMA = IDTURMA; It will always return true because…
-
0
votes1
answer424
viewsORACLE/PLSQL auto increment
Nome Idade ID João 5 Lucas 5 João 2 Lucas 1 I would like to use a cursor to sort by names and by age and the ID field to be populated according to the sequence, for example: Nome Idade ID João 2 1…
-
0
votes1
answer138
viewsPython set String where the cursor is
Good afternoon I need to set a string where the cursor is stopped. Examples are: - Blinking cursor stopped in a notepad, play a string in the notepad. - Blinking cursor stopped in any input field,…
-
0
votes1
answer665
viewsError using cursor to read Sqlite table
I’m having the following mistake: Couldn’t read Row 0, col -1 from Cursorwindow. Make sure the Cursor is initialized correctly before accessing data from it. however to my view the cursor was…
-
0
votes1
answer641
viewsAttempt to invoke virtual method android.database.sqlite.SQLiteDatabase.rawQuery(java.lang.String, java.lang.String[])' null Object Reference
Okay, I’m new to Android and I’m developing a somewhat complex application for a course completion. At the moment the problem is to display a listview with information from a local database…
-
0
votes1
answer120
viewsI think my table is not being created : no such table?
I am trying to make a check to know if there is something inserted in the table, but it always error in this row saying that there is no such table. my database: package…
-
0
votes2
answers144
viewsinsert a cursor inside of a while on android
on android i have a cursor where it searches the data in the database and returns the data perfectly but.. as I insert a second cursor inside the first? to pull data from a second table my code try…
-
0
votes2
answers1354
viewsSelect from cursor
I am trying to make a trial with the following mysql block: DECLARE done INT DEFAULT FALSE; DECLARE v_id INT; DECLARE R CURSOR FOR SELECT id ,nome FROM pessoa d DECLARE CONTINUE HANDLER FOR NOT…
-
0
votes1
answer84
viewsInsert a counter into Listview
I am using a Cursoradapter to fill my listview, within each item of my listview there are two buttons, one to add and one to decrease the value, and a textView to display this value, I wanted to…
-
0
votes0
answers45
viewsHow to use cursor() with associated data in Laravel?
$arrayCarros = []; $model = new Carros(); $carros = $model->with('montadoras')->cursor(); foreach($carros as $carros) { array_push($arrayCarros, $carro->toArray()); } Running the above…
-
0
votes1
answer45
viewsHow can I use sp_executesql to execute a query mounted on a variable?
I’m learning to use cursors and I’m trying to run a query I’ve mounted within a variable but it’s giving the following error: "Message 214, Level 16, Status 2, Procedure sp_executesql, Line 1…
-
0
votes0
answers224
viewsHow do I make an Insert into using dynamic SQL and run sp_executesql?
I am trying to make an Insert using cursor and execute sp_executesql using variable, the first time it ran and did not return anything, I went to the table and had not added any record. Then I ran…
-
0
votes1
answer30
viewsHow do I get back the id of the new record created in a table using cursor and Procedure in SQL Server?
I’m trying to make my previous run and return the registration ID that has just been created, as I don’t have much knowledge of cursors and procedures I don’t know where I am failing. When I run the…
-
0
votes1
answer49
viewsHow to apply a CSS style only to devices that do not have a mouse?
I need to hide an "X" icon when the device is in a web resolution with the pointer cursor and keep on touch devices (e.g., tablet and mobile). I don’t know if I need to use the media pointer, to…
-
-1
votes1
answer84
viewsTrigger cursor in book allocation
Well, I have a table called LOCACAO_LIVRO in it I have BOOK and CLIENT information when an allocation update occurs then the id_client will be informed, id_book, the data_de_output and from this…
-
-1
votes1
answer36
viewsHow can I run a Rigger that automatically updates a table when an attribute is updated?
Create OR Replace TRIGGER filme_log before Update OF custo On filme Referencing New As New Old As Old For Each Row Begin Insert into filme_log Values(:new.nome_original, :old.custo, :new.custo,…
-
-1
votes0
answers15
viewsPARAMETER FOR SORT ORDER
I’m taking a course and would like to order the return list by name. I tried inserting as DISPLAY_NAME parameter but does not return. Could help me know how to identify and what parameter to return…