Welcome! Log In Create A New Profile

Advanced

To Capitalise... or not to capitalise!?

Posted by Joanna 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
To Capitalise... or not to capitalise!?
September 02, 2007 08:25PM
Maybe there are some people out there who can benfit from my grey hairs eye rolling smiley

I moved on from my failure to get the switch to work and went ahead with trying to get the for loop working in Task 4A-1, and I just couldn't get it to work... I compared it to the working code in the XVIPS.html document... but my code just kept jumping out of the for look after instantiating the first instance! ie after the first occurrence... see if you can spot my error...

This is my code...

// MY CODE!!!

for(j = 0; j < 5; j++)
{
alert("in swapimgs "+j)
swapimgs[j] = new image()
}

// XVIPS CODE!!!

//for(j = 0; j < 5; j++)
// {
// alert("in swapimgs "+j)
// swapimgs[j] = new Image()
// rollimgs[j] = new Image()
// }

Eventually in desperation I changed new image() to new Image()

And now it works! smileys with beer

I'm sure if I go back and look at my switch coding again I'll find some little word not capitalised!

Please feel free to capitalise on my experience... spinning smiley sticking its tongue out

See you in the surf!
Joanna
Sorry, only registered users may post in this forum.

Click here to login