View Single Post
Old 29-09-2004, 14:14   #5
bob_a_builder
Inactive
 
Join Date: Dec 2003
Posts: 503
bob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to beholdbob_a_builder is a splendid one to behold
Re: Calling all Programmers please

I prefer to keep it simple

function CheckSum(str) {
var sum;
sum=0;
i = 0
while (i<str.length) {
sum = sum + str.charCodeAt(i);
i=i+1;
}
return sum;
}

charCodeAt(i); is just teh javascript equiv of basic mid() and asc()
bob_a_builder is offline   Reply With Quote