Questions tagged [assign]

Something related to an assignment operation, i.e. the process of changing the content of a variable to reflect some given value.

1695 questions
0
votes
1 answer

Why doesn't dajax assign work?

Either I'm not seeing the obvious or something fundamental must be wrong. I'm playing around with dajax and first everything seemed to be working right. That is the alert "Hello world" test went through. But for some reason I can't get the assign…
LarsVegas
  • 6,522
  • 10
  • 43
  • 67
0
votes
1 answer

MySQL Procedure - Assign calculation on columns within an update to a variable to be used in another update

I have a database with 3 tables and I am updating a row in the first, and then trying to update the second and third tables based on the change to a field in the first. Here is what I have at present: --Session-- User Hotspot DownloadCounter bob…
0
votes
3 answers

Use smarty variable in assigned variable

I assigned a variable in PHP with fetched data from the database like this: $smarty->assign("text",$result->text); $smarty->assign("amount",250); in the $result->text is Amount is {$amount}$ and in my .tpl file I use the variable : {$text} but the…
MajAfy
  • 3,007
  • 10
  • 47
  • 83
0
votes
2 answers

Java: Set assign value to string from running thread?

how can I assign a value to String outside of run() in java. It's starting new thread, running and obtaining value, then is supposed to return it. if I try to just set string = value in thread, it tells me I need to change String to final which wont…
arleitiss
  • 107
  • 2
  • 13
0
votes
1 answer

I'm trying to pull a variable from a query string and use the value to populate a hidden variable in my form.

I am trying to pull a variable from a url and populate a hidden variable in my form using jquery. I've been stuck on this for a few hours now, and I'm hoping someone better at jquery than me can help me out. I've found several solutions, but none…
jhohman
  • 37
  • 1
  • 9
0
votes
1 answer

Obtain List from asynctask

public class GetAllEggs extends AsyncTask> { List eggs; Egg eg; JSONParser jParser = new JSONParser(); @Override protected void onPreExecute() { super.onPreExecute(); } @Override …
user2307268
0
votes
1 answer

Excel Add-in: How to remove macro hotkey

How do I remove the hotkey from a macro which does NOT appear in Tools > Macro > Macros? I installed an add-in and Excel has automatically assigned the hotkey "CTRL+U" to it. I want Ctrl+U to retain its original function, underlining text in a cell.…
Genki
  • 378
  • 6
  • 17
0
votes
4 answers

How to assign value to the datagridviewtextboxcolumn in code behind?

I have a gridview of type datagridviewtextbox column. It has following fields. SrNo. | Description | HSN Code | Qty | Rate | Amount I have fetched records of "Description", "HSN Code" , "Qty" & "Rate" in the dataset. I Want to…
0
votes
1 answer

Why can't I assign random.nextInt to a variable?

I want the variables p and z to get a new random number assigned to them but I get a NullPointerException when using the code below. I've done something similar before and it worked fine so I am probably being silly and missing something obvious.…
0
votes
1 answer

Cannot assign one pointer to another because of type mismatch, or so the compiler says

Here is the header file code, stack.h: #include using namespace std; //template struct stackNode; //template struct stackNode { int item; stackNode *Next; stackNode *Prev; //stackNode *Temp; }; class stackClass…
0
votes
3 answers

C# assign one reference type to another without it's reference to the object

Can I assign value to reference type without giving it's reference to that object. Like I have function that gets fileinfo and I wanna check if thats changed later in different thread. Example info = GetInfo(path); checkInfo=info; // I make changes…
Siim Nelis
  • 882
  • 7
  • 10
0
votes
1 answer

Matlab to Python conversion - Can't assign to function call

I have recently been trying to convert a piece of Matlab code into Python code. I have made most of the changes that I need to however, the issue I am having is the line where it says: y(index(m)) = 1-x(index(m)); I get the error: "Can't assign to…
user2153868
0
votes
3 answers

error C2101: '&' on constant

I have a following code: std::map m_cellMap; when Cell is defined as follows: class Cell { public: Cell(int x = 0,int y = 0) : m_x(x),m_y(y) { } private: int m_x; int m_y; /// class…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
0
votes
1 answer

how to store the field value in the scanner

I am trying to assign the value String in my Scanner, Shall I use nextLine() as it might contain more than a word or shall use next()? The original codes are too long and I can't paste them all anyway. The method has a parameter Scanner scanner, and…
Ghassar Qhasar
  • 75
  • 1
  • 11
0
votes
3 answers

assign values executed to array in python

n = 1 for n in range(3): p = Poly(a[n+1][0:3]) print p n=n+1 this is my coding. basically, I have a 3 times 3 matrix, I want to assign each row to a polynomial function and then assign each polynomial function to a new array.…
һ 刘
  • 25
  • 1
  • 4
1 2 3
99
100