declare

How do I declare index=0 in .h file iPhone

// Declare index in Header.h index=0; - (IBAction)next { index++; // Set imageCount to as many images as are available int imageCount=2; if (index<=imageCount) { NSString* imageName=[NSString stringWithFormat:@"img%i", index]; [picture setImage: [UIImage imageNamed: imageName]]; } } Where do I decl...

MySQL: DECLARE CONTINUE HANDLER to continue on errors, printing a warning

I am reviewing / redesigning / refactoring a database and want to create a new database that stores pretty much the same data in a smarter fashion. One of the problems in the 'legacy' database is that it does not make proper use of keys and indices, so there is duplicate entries where there should be none. I have written a python script...

Common Lisp: deleting unreachable code.

This is an easy one. (let ((x)) (if (typep x 'null) "a" "b")) generate a warning about unreachable code deletion. Presumably the compiler was smart enough to figure that it is only executed once and the type will always be null. I wouldn't normally write that code, but in this case I just don't want the code deletion notice in my outp...