variables

Session start

In header.php I have: <?php if(!isset($_SESSION)) { session_start(); } ?> and further down I have: $_SESSION[theme] = $_GET[theme]; Basicly there is a drop down box where the user selects the website theme, this sets the value of $_GET[theme] and I would like the selection to be remembered, however whenever the page is changed the...

Excel vb code stopped working (variable not defined)

(DISCLAIMER: I'm not a programmer, I spend my time on serverfault, I'm just a lowly admin) We have an excel spreadsheet with vb code in it that was created in Office 2003. We've recently gone to Office 2007, and the spreadsheet continued to work as normal. However, after installing service pack 2 for Office 2007 the spreadsheet now fa...

javascript variables, What does var x = a = {} do?

I see in jQuery something like this: jQuery.fn = jQuery.prototype = {} Why is this being done? Isn't this the same thing just saying jQuery.prototype = {}? I'm not sure I understand what Resig is accomplishing here. ...

what is the difference between cfproperty tag defined variable and the variables scope variable in coldfusion?

What is the difference between cfproperty tag defined variable and the variables scope variable in ColdFusion? I have Java language experience, can you compare the ColdFusion cfproperty variable, variables scope variable to the Java instance variable and class variable? greate thanks! ...

How to Filter variables for SP, to return only one value from many in SQL View

Hi , In a SQL View, I have 5 boolean variables and one int variable. out of 5 boolean variables only one variable will be true for a single data row, Task Type boolVerySmall Datestart TagName Architecture Setup -- Doc Code True 1900-01-01 00:00:00.000 Design_09 idProject boolsmall boolM...

Javascript local variable declare

Basically this is a question how to access local scope handler. I trying to achieve something similar for global variable definition like: window['newObject'] = "some string"; alert(newObject); but for local scope. Right now only solution I have is using evals: eval("var newObject='some string'"); But this is really ugly solution.....

Where do I find the definition of size_t?

I see variables defined with this type but I don't know where it comes from, nor what is its purpose. Why not use int or unsigned int? (What about other "similar" types? Void_t, etc). ...

Why does my variable keep resetting itself?

I have an image slider that I built for my website, and I have it set to slide every 3 seconds (will be slower after diagnostics, but I don't like waiting 10 seconds to see what's wrong). I also have it set so that before it auto-slides, it checks if the toSlide variable is set to 1 (default) or not. When the user clicks on a next/previo...

Python: Persistent shell variables in subprocess

I'm trying to execute a series of commands using Pythons subprocess module, however I need to set shell variables with export before running them. Of course the shell doesn't seem to be persistent so when I run a command later those shell variables are lost. Is there any way to go about this? I could create a /bin/sh process, but how wo...

How to set the Eclipse date variable format?

How can I set the format for the ${date} variable which can be used in Eclipse templates? ...

Do asp.net application variables pass by reference or value?

I've discovered recently that when using the Session or Application objects within an ASP.net application, that it passes the values by reference. This works great most of the time, but now I'm in a place where I truly need a copy of the data, and not a reference to it, since I will discard any changes to it when done processing. I'm a...

MS Access 2000 - VBA Value from a combo/text box into a file path string

Hey guys. I have a form that I intend to allow users to browse powerpoint presentations through, because there are a lot of different briefs for metrics, which is what I use this database for. So, I already know how to set up everything, just got one little hang up. If I place a combo box on the form to select from a list of different p...

Low Level PHP Variable Passing Question

Hello All, I am new... to the site and to PHP in general. Please forgive my ineptitude. Anyway, I tried poring over the tagged posts for "passing" "variables" etc. Got some bites, but not exactly what I need. Unfortunately, I learn things by reverse engineering, so like many, I've been going around stealing snippets of PHP and adap...

Problem with my variable scope in JavaScript I think

I have quickly coded up a sort of product display thing that gets half of it's input from the page, and the other half from an AJAX query. Here is the code function productDisplay() { products = []; this.index = 0; setupProductDisplay(); processListItems(); showProduct(); function setupProductDisplay() { ...

ASP VBSCRIPT variable declaration issue

First of all, I got a question in .asp page Class clsTesting Function hash_call ( methodName,nvpStr ) ..... Set SESSION("nvpReqArray")= deformatNVP( nvpStrComplete ) ..... End Function end class When I perform call to this function, once reach the Set SESSION("nv line it say error: Microsoft VBScript runtime (0x800A01A8) Object ...

How can I execute code when value of a variable changes in C#?

I want to toggle a button's visibility in when value of a particular variable changes. Is there a way to attach some kind of delegate to a variable which executes automatically when value changes? ...

What is a variable?

What is a variable? This question is important for philosophical reasons. ...

Constructing the FROM in SQL

I'm looking to pull a specific line from a number of table that have a field name criteria1. The problem I'm having is that when I combine the Owner and Table Name and try to call "select criteria1 from @t where linenum = 1" SQL is expecting @t to be a table. I need to know how to construct the full table name and then pass it to this qu...

Add local variable to running generator

Lately, I tried to set local variables from outside of a running generator. The generator code also should access these variables. One trouble was, that when accessing the variables, it seamed that the interpreter was thinking it must be a global since the variable was not set in the local scope. But I don't wanted to change the global ...

in coldfusion, variables in what scope can be passed to and iframe page?

hi everyone, i wrote 2 pages to test this problem, but the server complaints error. i don't know why, anyone can explaint it? great thanks. this is 1.cfm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <meta http-equiv="Content-type" content="te...