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?
...
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...
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 ...
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...
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...
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
...
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...
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 ...
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?
...
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...
does eclipse.ini or eclipse command line does variable parsing?
such as $PATH or ${java.home} ?
...
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?
...
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, ...
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...
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...
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) {
...
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...
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...
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.
...
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 ...