variables

Is there a way to evaluate a variable in vba?

I have a variable newItem. I want to place the value stored in newItem into a string. I thought I would be able to accomplish this with... myString = eval(newItem) ...but it doesn't work. Is there any way to evaluate a variable in Access vba? ...

is there a way to add a variable/property to a DOM element (eg, an element returned by a jQuery selector)

Hi there, I am looking for an alternative to using an object/variable in global scope -- I would like to associate key/value pairs with specific DOM elements (eg, a DIV), so that I can use them as input for logic that processes other elements (eg, child elements of said DIV). I tried something naive like: $('[foo=bar]').key='value' , a...

Can I programatically get hold of the Autos/local variables that is shown when debugging?

Im trying to build an error-logger that loggs running values that is active in the function that caused the error. (just for fun so its not a critical problem) When going in break-mode and looking at the locals-tab and autos-tab you can see all active variables (name, type and value), it would be useful to get hold of that for logging ...

Variable in function from included file - php

Hi. I haven't found a very good answer to my problem so I'm starting a new topic. I have the file english.php which has variables like $lang['fname'] = "First name";. Also I have header.php which includes english.php : include('english.php');. Now, header.php is included in another php page, let say addInfo.php. If I write in addInfo.php...

UIImageView touchesBegan don't exist variables

Hi, here is the situation: 1.I have viewControler and in method viewDidLoad i created subview and add it to a this view. 2.My subView (UIImageView) colled Kvadrat and in method. Here i am cooling my other class and here method. -(void) setKorpa: (Korpa *)k { mKorpa = k; NSLog (@"Number of elements in array = %i", [[mKorpa vratiSveKv...

asterisk in variable declaration in headers in obj-c

I get that asterix is for pointers, and I understand about pointers now. But I'm still not sure why when declaring a variable in a header I need to use an asterix, for example: UINavigationController * navController; why isn't that: UINavigationController navController; Thanks ...

Change the value of variable PHP

I have input fields ,which I process with AJAX and send it on another file. The value of the inputs is always different. How in the file ,where I get the data from AJAX ,to change the variable id always when I get the data from AJAX. Example: I get the data from AJAX in this file: <?php $id=1; echo '<div id="$id"></div>'; ?> Then I d...

get an array variable in python

hi, can I do this in a loop, by producing the file name from the name of the array to store ? ab = array.array('B', map( operator.xor, a, b ) ) f1 = open('ab', 'wb') ab.tofile(f1) f1.close ac = array.array('B', map( operator.xor, a, c ) ) f1 = open('ac', 'wb') ac.tofile(f1) f1.close ad = array.array('B', map( operator.xor, a, d ) ) f1 ...

C, Dealing with variable argument functions

Let's say I want to do something like this void my_printf(char *fmt,...) { char buf[big enough]; sprintf(buf,fmt,...); } What is the proper way of passing the variable number of arguments directly to a function with accepts variable arguments? ...

as3 tracking number value of variables

Hi, I have a bunch an as3 game going. In my game when newCrag hits egg_mc the score gets added. // Add the score var newScore:score_mc; newScore = new score_mc(); addChild(newScore); newScore.x = 20; newScore.y = 20; newScore.score_txt.text='0/15'; var score:Number=0; function getEggs(event:Event):void { if(event.target.hitTestObj...

eclipse.ini variables

does eclipse.ini or eclipse command line does variable parsing? such as $PATH or ${java.home} ? ...

Creating a variables file in Flex 3...

I am trying to place API variables on ONE class file or mxml file and call these variables in other random class or mxml files... any suggestions? ...

Preventing entire JOINed MYSQL query from failing when one field is missing within a WHERE clause

I am doing a couple of joins with a variable in the WHERE clause. I'm not sure if I am doing everything as efficiently as I could, or even using the best practices but my issue is that half my tables have data for when tableC.type=500, and the other half don't resulting in the entire query failing. SELECT tableA.value1 , tableB.value2, ...

Using a singleton database class in functions and multiple scripts(PHP) - best use methods

I have a singleton db connection which I get with: $dbConnect = myDatabase::getInstance(); which is easy enough. My question is what is the least rhetorical and legitimate way of using this connection in functions and classes? It seems silly to have to declare the variable global, pass it into every single function, and/or recrea...

howto, Use JQUERY .EACH() but not for a element, for a Variable

In Javascript, I have a variable that is set to a block of text from a WYSIWYG editor. I want to use JQUERY's EACH() to find span's with the class XXXX. $( "span.foods" ).each( function() {}); But I want it to search in the variable=lookhere I have since I don't have access the the text in the WYSIWYG editor directly (CKEDITOR). H...

Java NullPointerException. Why?

I am new to Java. I just read that class variables in Java have default value. I tried the following program and was expecting to get the output as 0, which is the default value on an integer, but I get the NullPointerException. What am I missing? class Test{ static Integer iVar; public static void main(String...args) { ...

PHP: why is this null different from the other null

hi i tried 2 things what should be the same however it my testing says different does anyone know why the only thing i do is put it in a variable... if ($_SESSION[$something] === null) echo("this is null"); $_SESSION[$something] does not exists so it indeed says: "this is null". now look at this $theSession = $_SESSION[$s...

Quarter as a Count variable in SAS.

Hye Guys, I'm busy working on a time series and am trying to find the commands that allow me to insert a quarter count variable. To keep things simple, the third quarter of 1995 (date my observations start) should be quarter -2, the fourth quarter of 1995 should be -1 etc etc uptill 2006 (should be somewhere around 45 by then). My dates...

Js constants with variables inside.

I know I'm able to this in PHP, but I can't remember the name or the way to do it, so I'll just explain what it is, and when someone tells me how it's called I'll update this question. I have some error messages defined as constants on javascript, however, some of those messages need to contain dynamic part as in the following example. ...

Merging datasets based on 2 variables in SAS.

Hye Guys, my question is the following, i'm working with different databases, all contain information about 1000+ companies, a company is defined by its ticker code (the short version of the name( Ford as F) usually seen on stock quotation boards). Aside from the ticker code to merge on I also have to merge on the time, I used month as ...