Search:

Type: Posts; User: Chris.Brown.SPE

Search: Search took 0.07 seconds.

  1. Re: Please, help me out in calculating guest number of stay in a hotel

    Let me set some values to these variables for my example.

    NoOfDays = 2;
    curr = 5;

    In your if statement, NoOfDays will increment to 3 then be set to 5.
    In your else statement, NoOfDays will be...
  2. Re: Please, help me out in calculating guest number of stay in a hotel

    The imediate problem i'm seeing is that you're setting the NoOfStay to current after you increment it. Basically overwritting your increment.



    if(toDate != inDate)
    ...
  3. Re: Please, help me out in calculating guest number of stay in a hotel

    I'm not sure where to start. I cant really hammer down what is going on as it seems there is code missing. Can you post the whole class so i can see where all variables are being initialized? Maybe...
Results 1 to 3 of 3