PDA

View Full Version : Integer, Double & Float Query


WildChild
12-10-2006, 02:24 PM
I have a variable called "customerNumber" this represents a telephone number, when i create a new account I enter in the "customerNumber" for example "1234567" it accepts this. But as soon as i query the account with the command "int getCustomerNumber()" all i recieve is the first line of the customernumber i entered which is "1".

Why is this and how do i go about revealing the total customerNumber?

WildChild
12-10-2006, 02:28 PM
ok ignore this realised my code for setting the customer was wrong and needed some parameters sorry.

Mink
12-10-2006, 02:30 PM
without knowing what getCustomerNumber does, i cant help much. is customerNumber a string? or an integer?

WildChild
12-10-2006, 02:39 PM
It was not returning a set of integer numbers properly, but it was because i had not stated it was an integer in the parameter field of the variable, i had left this blank. - all ok now though :thumbsup: