Questions tagged [increment]

DO NOT USE THIS TAG ALONE. Use with a language tag like [javascript] or [python]. Adding one to the value of a variable, generally with the use of an increment operator.

Adding one to the value of a variable, generally with the use of an increment operator.

3520 questions
0
votes
2 answers

Add table data to itself, incrementing timestamp

I have a table with dummy data in it, with 40,000 rows, and a timestamp on each row that increments by a few milliseconds. I want to multiply these rows by, say, 10, each 40,000 rows incrementing by a day, and hour, whatever I set it to be. Is…
Jon Mitten
  • 1,965
  • 4
  • 25
  • 53
0
votes
1 answer

VB.NET memcache increment trouble

Trying to use memcache's increment function in VB.NET. It won't increment a darn thing and returns -1 as the result when trying to use the increment function. Always says message counter incremented from 1. Value is now 1 Here's my sub as it stands.…
g179mm
  • 13
  • 3
0
votes
2 answers

Dynamically add rows in multiple tables in same page using one function

I have multiple tables and I have a function that add rows to these tables: ... ...
sarah
  • 103
  • 2
  • 12
0
votes
2 answers

How to fit closest point to an equation? Python

Basically I have some code for which it will find the equation of a plane and then attempt to place a 1 in a list if a point satisfies this equation of a line, otherwise a 0 is put in for the list. Unfortunately, there has to be an increment amount,…
joseph
  • 1,021
  • 2
  • 9
  • 11
0
votes
1 answer

what's the best way to add increment decrement function

I'm trying to build an app to move stocks around. I have products and storages. I want to be able to move X count of products from storage A to storage B. I guess I need some credit/withdraw function to update increment quantity on one side and…
Gaelle
  • 599
  • 2
  • 6
  • 24
0
votes
3 answers

Incrementing an internal signal

VHDL coding problem :( Hello! I've been working on this problem for awhile. I have a feeling it's a beginning problem that I don't quite understand. --I'm accessing internal memory, 4 rows of 2 bit numbers each. I've been able to read and write to…
user1020394
  • 1
  • 1
  • 1
0
votes
2 answers

C++ Constant return type of suffix increment operator

In C++, wherever I see in web an example of suffix increment operator declaration, it is always declared as T& operator++(int); and I believe this is the correct syntax of a suffix increment, isn't it? The issue is that, whenever I declare suffix…
Andrew
  • 157
  • 9
0
votes
2 answers

Using a Counter class to increment and decrement: java

I'm having trouble visualizing the end product of this problem: Define a class called Counter whose objects count things. An object of this class records a count that is a nonnegative integer. Include methods to set the counter to 0, to increase the…
user868935
0
votes
2 answers

Issues incrementing a field in MySQL/PHP with prepared statements

I have the following code which is supposed to increment a field value by 1 in a prepared PHP mysql statement: function db_OP_doVote($pdo, $postid, $votetype) { $prepStatement = $pdo->prepare( "UPDATE content_posts SET `:votetype` =…
Ephemeralis
  • 189
  • 3
  • 17
0
votes
2 answers

How to increment a variable, and record value of a radio button over a series of pages?

I am making a basic quiz program, that when finished will allow the user to complete quizzes being read from a MySQL database, and write quizzes to be stored in the database. I have a variable for question number ($qn), which when incremented…
Alicia Sykes
  • 5,997
  • 7
  • 36
  • 64
0
votes
3 answers

Increase Number Value Displayed on Screen

I need to have a number that's displayed on a web page that will increase or decrease when the up or down arrow keys are pressed. I found/massaged together javascript file to do this but I can't seem to get it to work with my HTML. I was trying to…
KDM
  • 197
  • 5
  • 18
0
votes
1 answer

Add an increment from XSLT-transformed nodes

I would like to add an increment to an XML element by counting the number of nodes in the source file. This increment is placed in a particular condition that counts the position in a tree structure. Here's an example of the source…
Pick
  • 55
  • 4
0
votes
0 answers

Using post increment operator in return statement

How does the post increment operator work in a return statement of a function? Let say function foo(n) {return n++} If the return statement ends the function execution and returns n, then when does the increment of n happen? I suppose that n is…
kbl
  • 129
  • 5
0
votes
0 answers

Applescript rename file (increment) error number -1728

I wrote a small script just to incremente a series of file names. I want to get a file named "111 - something.pdf" and rename it to "112 - something.pdf" But for some reason I'm getting this error: error number -1728 set thisFile to choose file tell…
0
votes
2 answers

I want to auto generate bill no in this format (INV1/23) and it have to increment with 1

I want do auto generate bill no in this format (INV1/23) without using sequence in oracle apex. Kindly write query in plsql. I used sequence for this process, but it is not working for this. and it have to show on interactive report with form. Like…
1 2 3
99
100