Hey... im working on that same program again, you know, the one with teh numbers! lol
Any way Ive hit another problem...
value is longint
input is string
a is 2187 h is 1. each letter is 3 times smaller than the previous one.
value := ((ord(input) - 64) * a);
That works perfectly when input is A (oh im using upcase aswell) to N (1 - 14) but when a letter higher than N (O-Z) is used, it doesnt do the maths right. It goes into a negative number.
Im using longint so I dont understand why its doing this. Can anyone explain why please? Thanx
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
Any way Ive hit another problem...
value is longint
input is string
a is 2187 h is 1. each letter is 3 times smaller than the previous one.
value := ((ord(input) - 64) * a);
That works perfectly when input is A (oh im using upcase aswell) to N (1 - 14) but when a letter higher than N (O-Z) is used, it doesnt do the maths right. It goes into a negative number.
Im using longint so I dont understand why its doing this. Can anyone explain why please? Thanx
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."