value

Flex 3 - how to select an item in the list as default ?

how to select an item in the list as default default selected item say of index 0 I tried stuff like this -- listid.selectedIndex = somevalueinmyprogram - 1; // 0 but when i debug this i get _selectedIndex = 0 selectedIndex = -1 and default value is not selected why so? [i have already checked for the obvious that somevaluef...

Display parameter's value list of stored procedure

Hello, calling a stored procedure as int pageNumber = 1; int pageSize = 4; SubSonic.StoredProcedure sp = SPs.UspListPlants(pageNumber, pageSize); string result = sp.GetReader(); The sp work fine, but trying foreach (SubSonic.StoredProcedure.Parameter param in sp.Parameters) { sb.Append("'" + param.Name + "' = "); ...

objective-c saving values in memory between classes

Greetings - I am trying to set and store values in memory... and be able to share them between classes. I've tried two different methods with not too much luck -- one with 'dot' syntax and one with []. Generally: In class1 I have something like this: #import <Foundation/Foundation.h> @class Class1; @interface Class1 : NSObject { ...

Infrastructual user story problem

"We need to show quotes related with the current document." This user story will cause many of our subsystems to get modified, and it is more or less 4-5 sprint length. Splitting it into sub stories is impossible cause the modifications has no business value. But, in the 5th sprint, there will a business value. What do you suggest? How...

PHP Object return value

Hi, Currently I'm programming a database class which makes a little bit use of PHP's PDO class, but I'd like to add some simple features for making programming a certain application a bit easier. Now In the following piece of pseudo code you can see where I'm going. The only problem in this example is that the $result variable is an ob...

Why is BIGInteger in JAVA not responding for higher powers?

Hi, When I try to find the value of BigInteger data type for 2 to power 23,000, I am not able to see the value. Upto 2 to power 22000, I could display the biginteger value . I am on XP. Any solution/suggestion? Sastry ...

target value for ssrs line chart report

Hi, I am working on SSRS Line chart report. I have plotted data for Fuel consumption for every month using data values (Fuel consumption) and category grouping (Jan-Dec). Data can be inconsistent i.e. for one or more month. I am facing problem in plotting lower limit and upper limit series for the data, which has to be consistent i.e ...

How to append value from form field in a new form field

Hey Guys, Here's the story. I have a form with some form fields. Example: name email message What I would like to do is when I click to submit the form, get JQuery to grab the email field value and append it to the message field. I have the value stored here: var email = $('#email').val(); Any ideas? ...

Variables with respect to DOM

This is surely a JS beginner question. My issue is I want to use the value of the variable type to access the relevant checkbox; however it is treating the variable as a string. I have tried it to two ways. function toggleGroup(type) { if (document.getElementById(type).checked == true){ alert("foo"); } } or function ...

Counting non-null columns in a rather strange way

I have a table which has 32 columns. 2 of these columns are identity columns and the rest are values. I would like to get the average of all these 30 columns, excluding the null ones. If none of the columns were null, that would have been pretty easy as follows select (val0 + val1 + val2 + ...) / 30 Since I would like to exclude the nu...

Excel formulas giving #VALUE! error when ported to mac

I want to be able to sum up the number of cells in a range that have a non-null value in them. On a PC running XP and excel I entered =SUM(IF(G$19:G$1034="",0,1)) and it spit out the correct answer. Now the same spreadsheet on a Mac running excel 2004 for Mac gives that a #VALUE! error. Any thoughts on why? ...

How can C# nullable value typed values be set on NHibernate named IQuery parameters?

I am using NHibernate and calling a stored procedure via a named query: <sql-query name="SearchStuff" read-only="true" cacheable="true"> <return class="ResultEntity" /> EXEC [SearchStuff] ?, ?, ? </sql-query> Many of the stored procedure parameters are deliberately nullable - this cannot be changed. The C#: IQuery listQuery =...

Random Python dictionary key, weighted by values

hello, I have a dictionary where each key had a list of variable length, eg: d = { 'a': [1, 3, 2], 'b': [6], 'c': [0, 0] } Is there a clean way to get a random dictionary key, weighted by the length of its value? random.choice(d.keys()) will weight the keys equally, but in the case above I want 'a' to be returned roughly half the ...

Implicit return values in Ruby

I am somewhat new to Ruby and although I find it to be a very intuitive language I am having some difficulty understanding how implicit return values behave. I am working on a small program to grep Tomcat logs and generate pipe-delimited CSV files from the pertinent data. Here is a simplified example that I'm using to generate the line...

Is string a value type or a reference type?

I just can't find a "good" explanation for this... ...

Text Input error / validation and restore previous correct value in Flex

I have text input boxes. There is validation for each of the boxes using numberValidator. Now, the thing is that am using alert box to show if any error occurs. Flowchart :: 1> Insert value in textBox. 2> NumberValidator validates the input on "trigger=change". 3> If error, alert message is displayed. The user clicks OK to go back to f...

Return values with reference arguments or by structure

In what situtations is it best to use reference arguments to return values? Sub Example(byref value as integer) value = 3 End Sub In what situations is it best to return the value (perhaps in a structure for more complex types)? Function Example() as integer return 3 End Function ...

jquery- how to detect element value when onclick?

how do i bring the tr value into .click event? i want to be able to pass the tr id into updatedb.php as well- for sql updating enter <head> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script src="jquery.jeditable.mini.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(fu...

Unexpected result when comparing values retrieved with PropertyInfo.GetValue()

I've got some code which I use to loop through the properties of certain objects and compare the property values, which looks somewhat like this: public static bool AreObjectPropertyValuesEqual(object a, object b) { if (a.GetType() != b.GetType()) throw new ArgumentException("The objects must be of the same type."); Type type = a....

Is there a PHP5 setting to make it copy objects by value?

I got stuck moving an old website written in php4 to my company's new server that only supports php5. In php4, objects were copied by value, but in php5 it's by reference. Unfortunately for me, the person originally who wrote this site was making objects from others left and right, and now it's causing all sorts of problems. Is there ...