Questions tagged [setvalue]

setvalue is an ambiguous tag askers use to indicate they have a problem assigning a value to "something".

setvalue is an ambiguous tag askers use to indicate they have a problem assigning a value to "something". This tag should - if possible - generally be avoided. Proper use of the setvalue tag is if the question specifically targets a certain setvalue function.

365 questions
8
votes
2 answers

JavaFX ComboBox change value causes IndexOutOfBoundsException

I want to include checks for my combobox to restrict "access" to some of the values. I could just remove those unaccessible items from the list, yes, but I'd like the user to see the other options, even if he can't select them (yet). Problem:…
leyren
  • 524
  • 6
  • 20
8
votes
2 answers

Textarea using set_value not populated Codeigniter

i have a simple form in my view that has a text area : in my controller i have validated this text area using form_validation library…
Nishant Jani
  • 1,965
  • 8
  • 30
  • 41
7
votes
5 answers

Objective-c: why private ivars are not hidden from the outside access when using KVC

After trying to access ivars using KVC, I have noticed that there was no protection on private and protected ivars. It doesn't matter what I put a in front of the ivar (private or protected keyword) - an ivar is always a public ivar when using KVC…
Centurion
  • 14,106
  • 31
  • 105
  • 197
7
votes
2 answers

How to check if value was set manually and not with setValue (JSlider, JSpinner)?

How can I check if the value of a JSlider or JSpinner was set via the graphical interface and not via the method setValue( int n) ?
andreihondrari
  • 5,743
  • 5
  • 30
  • 59
7
votes
2 answers

From Array to setValues gives: "Cannot convert to ."

BACKGROUND. I want to change a timesheet from a week format (every row shows 7 days, no date is available only week in the from yyww (e.g. 1225). In another sheet one column lists week and another lists the dates. METHOD. I take these two sheets…
6
votes
1 answer

The CodeIgniter set_value() not working?

I am developing a category module where I am using the CI validation rules. When the validation rule fails I want the form to have the same value that the user had entered. I have used set_value function to load the value in the form after the…
Hrishav Ojha
  • 545
  • 5
  • 12
5
votes
1 answer

In Selenium how exactly are the sendKeys() and setValue() methods different?

I've used both WebElement.sendKeys('') and WebElement.setValue('') In order to input text into fields. The vast majority of the time they seem to act the same, but I've found a few cases where setValue() works but sendKeys() does not. All I can…
C. Peck
  • 3,641
  • 3
  • 19
  • 36
5
votes
3 answers

Non-static method requires a target in PropertyInfo.SetValue

Ok, so I'm learning about generics and I'm trying to make this thing run, but its keep saying me the same error. Here's the code: public static T Test(MyClass myClass) where T : MyClass2 { var result = default(T); var resultType =…
Victor Alejandria
  • 120
  • 1
  • 3
  • 10
5
votes
2 answers

Setting value of array using java reflection

I have created generic json parser using java reflection, but there is a error that i am not able to solve. Method (at the bottom of this question), receives subclass of my custom Model class. I iterate through fields and set values from json. If…
bajicdusko
  • 1,630
  • 1
  • 17
  • 32
5
votes
3 answers

Are the SetValue/GetValue methods of System.Array thread-safe?

We had a little discussion in the office, and got no documented answer: Is System.Array.SetValue thread safe? using System; using System.Text; using System.Threading; namespace MyApp { class Program { private static readonly…
Ron Klein
  • 9,178
  • 9
  • 55
  • 88
4
votes
1 answer

angular material autocomplete prevents reactive from setValue from working

Edit: Resolved with Jojofoulk's comment. when using the autocomplete components of angular-material, I'm trying to use setValue to the input form, but its [matAutocomplete] attribute is preventing setValue from showing on the input. Inspecting the…
4
votes
5 answers

Codeigniter - Call to undefined function set_value()

im new on codeigniter and try to resolve following problem for hours now. I try to set_value in a form but when i set it i get following error: A PHP Error was encountered Severity: Error Message: Call to undefined function set_value() Filename:…
Hadi Reda
  • 43
  • 1
  • 1
  • 7
4
votes
2 answers

Using SetValue to add an event handler

This code works TextBlock tbTest = new TextBlock(); tbTest.MouseRightButtonDown += new MouseButtonEventHandler(cc_CopyToClip); But I need to do the same thing with a SetValue This does not work - compiler error FrameworkElementFactory textblock…
paparazzo
  • 44,497
  • 23
  • 105
  • 176
4
votes
3 answers

How to set variables in a loop with oracle?

I have a loop and a variable v_rownum and I want to set value for it: FOR donvi_rows IN v_donvi LOOP DECLARE v_rownum number; SELECT r INTO v_rownum FROM …
Hau Le
  • 667
  • 2
  • 17
  • 42
3
votes
1 answer

Julia 2d Matrix set value at index (i, j)

In Julia I created a Matrix A and want to set its value at (1, 1) to the value of 5. How do I do that? I tried this: A = zeros(5, 5) A[1][1] = 5 It throws the error MethodError: no method matching setindex!(::Float64, ::Int64,…
1
2
3
24 25